Post

Replies

Boosts

Views

Activity

Reply to how to update SwiftUI Map via MapCamera approach with data from @Observable? (see code)
thanks heaps - I'll try this shortly..... Couple of quick questions if I may: a) Is the new WWDC2013 "@Observable" approach I was trying to use not quite able to handle this by the way, re why you've had to go to ObservableObject? b) In terms of moving to SwiftUI, then should SwiftUI "Map" be able to do all one needs? Or may there be cases where you would want to stay with the custom MKMapView but using UIViewRepresentable to bring it into SwiftUI
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24
Reply to SwiftUI creating MapCameraPosition from CLLocationManager initialiser/self error when trying to tie them? (see code)
PS another way to ask this question might be - Within the view, how can I arrange for some code to be run each time a value within "newlocationManager" (which references the @Observable NewLocationManager instance) changes? (so within this code I can decided to update the Map position centering on this new location or not)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’24