Post

Replies

Boosts

Views

Activity

Comment on Can't use protocols with SwiftUI models?
this solution doesn't work, since SwiftUI does not reflect changes published on the super (as ObservedObject) since the models are nested, so it does compile but at runtime it will not refresh the view in your example the change occur on the sub model, but if a change would occur on the super then the view will not re-render
Sep ’21