Post

Replies

Boosts

Views

Activity

Comment on Why is my child SwiftUI view not updating?
This approach worked in my case, although I hadn't used a State variable in the child. The original object came from an Observable, though, which was handed over from the parent to the child as a variable. This triggered no re-render on the child. After I copied the Observable variable to a Binding and handed it over like this, it worked fine. But I still don't understand why.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’24