Relative Content

Tag Archive for swiftuimapkitswiftui-form

SwiftUI MapKit Local Search gets updates out of sync with UI when used within a Form

I’m not sure exactly how to describe my problem, but I can describe the context in which it appears. I’m developing an iOS app with SwiftUI and I’m using MapKit to integrate an interactive map as part of some form entry. I’m new to MapKit, but from what I understand my map view component should be fairly standard. The issue arises in where this SearchableMap is used. There’s two contexts that I’ve been testing in the code below.