I have an iOS app where I’m displaying approximately 2000 (two thousand) annotations in a Map view. It is unusably slow. Looking up similar problems, I see two recommendations:
- Load annotations only when they are visible using
onMapCameraChange
or - Use
MKMapView
instead of the SwiftUI Map view
Is this, in fact, a problem with the SwiftUI Map view? If so, which of these two solutions will result in the best (least laggy) user experience?