Skip to content

Issues with Custom Wrapped Views #710

Answered by stephencelis
bobmosh asked this question in Q&A
Discussion options

You must be logged in to vote

@bobmosh This is most likely the same bug we see with GeometryReader, seen here:

// NB: We are using an explicit `ObservedObject` for the view store here instead of
// `WithViewStore` due to a SwiftUI bug where `GeometryReader`s inside `WithViewStore` will
// not properly update.
//
// Feedback filed: https://gist.github.com/mbrandonw/cc5da3d487bcf7c4f21c27019a440d18
@ObservedObject var viewStore: ViewStore<ClockState, ClockAction>

The workaround there is to hold onto the view store in your view directl…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bobmosh
Comment options

Answer selected by bobmosh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants