MapKit performance when embedded in a SwiftUI container using UIViewRepresentable
Originator: | tadelv | ||
Number: | rdar://FB12116777 | Date Originated: | 2023-04-13 |
Status: | Open | Resolved: | |
Product: | iOS / SwiftUI / MapKit | Product Version: | |
Classification: | Slow / Unresponsive | Reproducible: | Always |
When a MKMapView is used in a SwiftUI container, using UIViewRepresentable, adding many annotations and then using pinch to zoom out causes severe hangs. Sample code: https://github.com/tadelv/mapkit-swiftui-performance/ I've written a blog post on the issue: https://vid.tadel.net/swiftui/mapkit/2023/04/12/mapkit-in-swiftui.html
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!