Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

I'm displaying Annotations on a SwiftUI.Map view and I'm seeing a strange behaviour that I'm not able to remedy. When I tap on an Annotation, it get's selected and selectionId is se to whatever UUID ...
RandomUsername's user avatar
0 votes
0 answers
89 views

I'm implementing a Map with user location customization in SwiftUI using iOS 17+ MapKit APIs. When using the selection parameter with Map, the default blue dot user location becomes tappable but shows ...
Stephen Zhang's user avatar
0 votes
0 answers
164 views

I'm attempting to animate an array of annotations on a SwiftUI MapKit Map and not getting the behavior I'm expecting. I see lots of examples on how to animate the map camera, etc, and even a few on ...
Scott's user avatar
  • 1,114
1 vote
0 answers
36 views

How to calculate Destination:(longitude & latitude precisely) From a source :(longitude, Latitude, angle (degree) & distance (length - direct, not through navigation path via road, direct ...
stellus's user avatar
  • 11
0 votes
2 answers
54 views

In SwiftUI I’m trying to create a custom MKMapView to allow to tap on the existing map annotations. However I’m having a hard time making the map react to the updates from the location manager. I must ...
rnaud's user avatar
  • 2,612
1 vote
1 answer
560 views

Using SwiftUI, MapKit and the Map() view in iOS 17, I'm adding markers and annotations to the map instance. However it seems regardless of what order they are added, they are rendered with random Z-...
Jim Marquardt's user avatar
1 vote
1 answer
2k views

My intention is to display a SwiftUI.Map (doc) with a line (that would represent a route) using MapPolyline (see doc). Unfortunately, the line does not display on neither the simulator nor a physical ...
invalidArgument's user avatar
0 votes
1 answer
1k views

I write map app for iOS 17 with Xcode 15. And I have problem with detecting user location. So, I add the parameters to info And I create Map() with MapUserLocationButton() var body: some View { ...
Aryesia's user avatar
  • 162
1 vote
2 answers
809 views

I'm following the "Creating and Combining View" lesson on SwiftUI. However when I tried to use the MapKit, my simulator doesn't work as it is supposed to work (which is show the pin at the ...
Thiện Nguyễn Bá's user avatar
3 votes
1 answer
778 views

My question is very similar to this one: Capture touchDown location of onLongPressGesture in swiftUI? However, there's one significant peculiarity: I want to get the coordinates of the ....
Dmytro Titov's user avatar
  • 3,311
1 vote
0 answers
808 views

I've run into a very strange issue. I have a SwiftUI app (iOS) where I have a full-screen ZStack: inside, as a "bottom layer", I have a full-screen Map, and on top I have a button (it is ...
Dmytro Titov's user avatar
  • 3,311
2 votes
2 answers
220 views

I've seen similar questions on this but none that are up to date or work successfully, I've followed Apples Developer docs, various videos, and guides on how to do this but it still throws these ...
Patrick Cockrill's user avatar
0 votes
1 answer
267 views

i have been trying to make so that when you press an annotation on the map that has been created by Core Data's object to show the LocationPreviewView(fish: fish). So how can i get the selected item ...
John's user avatar
  • 115
1 vote
1 answer
276 views

We are using the Map functionality with annotations. Functionality:- We have 2000 records in the array but we need to filter 150 records according to the region changed in the Map in SwiftUI. But ...
Siddharth Modi's user avatar
0 votes
0 answers
56 views

Setup: My app uses a SwiftUI Map with annotations. The annotations should be instances of a Place class defined as: final class Place: NSManagedObject, UpdateTimestampable, Identifiable { @...
Reinhard Männer's user avatar
0 votes
1 answer
100 views

Setup: My app uses a SwiftUI Map, essentially as struct MapViewSWUI: View { @Binding private var show_map_modal: Bool @State private var region: MKCoordinateRegion //… init(show_map_modal: ...
Reinhard Männer's user avatar