HomeiOS DevelopmentSwiftUI Map View freezes when there is no such thing as a...

SwiftUI Map View freezes when there is no such thing as a community


Map View in SwiftUI freezes, or stops receiving contact occasions when there is no such thing as a web connection. Any interplay, like zoom, pan and rotate stops working, however the map itself appears to be working, as if for instance I can add a MapPolyline and replace it, however the map remains to be not responsive.

To make clear, I do not thoughts that the map itself is empty, as in with out tiles, provided that there is no such thing as a web connection that’s anticipated, however I might nonetheless like to have the ability to work together with the map.

This was working correctly on iOS 17 and 18 however appears to have stopped engaged on iOS 26.

Ps: I observed that that is extra distinguished when there is no such thing as a cache of map tiles. MapKit has an inner cache, so if you happen to entry a map however haven’t any web connection you should still be capable to see a map as if you happen to had a working connection, it’s because possibly you beforehand used the map and this received cached. When there are some tiles loaded the map view appears to work as anticipated, however when the map is totally empty it freezes.

Instance

SwiftUI Map View freezes when there is no such thing as a community

Setup

  • SwiftUI

  • MapKit

  • iOS 26

  • Swift 6.3

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments