Relative Content

Tag Archive for iosdictionaryswiftuimobilemapkit

SwiftUI Map has poor performance while dynamically changing frame size

I have a Map() coming from MapKit. The map should smoothly change its size between 300px and 600px when I press a button. I achieved the required functionality, but the map is very laggy while resizing (FPS drops down to 15-20). However, performance issue happens only on a real device (iphone 13), if I run the same code on a preview simulator in XCode everything works smoothly.