José Roberto Abreu Báez

Results 7 comments of José Roberto Abreu Báez

> We developed a similar library to yours. We also placed the view for the annotation into a `HostingController` and then added the `HostingController` as s subview to the `MKAnnotationView`....

I can reproduce consistently with the following piece of code (as we zoom out, the circle shows up out of their coordinate center - the SwiftUI's Map is working fine...

Updating the MKMapAnnotationView's setup method to this, has an interesting effect: ``` func setup(for mapAnnotation: ViewMapAnnotation) { annotation = mapAnnotation.annotation let controller = NativeHostingController(rootView: mapAnnotation.content) addSubview(controller.view) controller.view.sizeToFit() bounds.size = controller.view.intrinsicContentSize...

I think I found a solution, appliying this two changes on the MKMapAnnotationView make it work: ``` // MARK: Methods func setup(for mapAnnotation: ViewMapAnnotation) { annotation = mapAnnotation.annotation let controller...

In the end, the changes that are working for me (including the animation on SwiftUI content) are this: `MKMapAnnotationView` ``` func setup(for mapAnnotation: ViewLocationDotMapAnnotation) { annotation = mapAnnotation.annotation let controller...

@BucekJiri Thanks for sharing that article, that explain a lot of things. 👏🏼

For me is happening something similar, but in iOS 13. I keep the app in foreground and after some time the app stop receiving WebSocket messages (that start happening after...