Updating a nested view in SwiftUI UIViewRepresentable

You need to update the UIHostingController's rootView.

1 Like

Sorry to bump this. I'm running into the same problem but the only thing is that the dimensions of the child view is not updating, other properties updates ok. Do we need special treatment to update the child view with frame()?

I left this around originally because I didn't see it before it had been answered, but this kind of question really ought to be asked over at the Apple developer forums, since it's just about Apple's SwiftUI platform framework and not Swift in general.