@rayx - Your solution only works if the observed properties inherit the Equatable protocol, as the onChange modifier needs it. For example, with MapKit, the MKCoordinateRegion does not conform to Equatable, but any changes to the region will cause this warning to pop up and spam the log.
Post
Replies
Boosts
Views
Activity
@fromtoronto But how to pass it the best way? Passing it via a Binding to the init of the UIViewRepresentable struct and then passing this Binding inside the makeCoordinator to the coordinator class?