Post

Replies

Boosts

Views

Activity

Comment on Xcode 14: Publishing changes from within view updates
@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.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22
Comment on State loops in UIViewRepresentable
@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?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’22