257 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
302
views
iOS 26 MapKit custom Annotation bug
In iOS 26 i have an issue with mapKit.
i created a custom annotation using "MKMarkerAnnotationView", it works fine with current stable iOS versions (15 to 18) but with iOS 26 the default ...
1
vote
1
answer
91
views
SwiftUI MapKit breaks the custom navigation bar
When I use non-deprecated Map() functions, it breaks the custom navigation bar and displays the system's default navigation bar instead. I haven’t been able to find a solution to this issue anywhere.
...
-1
votes
1
answer
137
views
Annotations are not enlarged on tap gesture in MapKit SwiftUI
I have written a MapView in SwiftUI which shows different locations. What i want is that when the user taps on any location then that location should be enlarged whihc means "mappin.and.ellipse....
0
votes
1
answer
201
views
Why does adding annotations in the updateUIView method of UIViewRepresentable causes stuttering animations in my SwiftUI app?
I am building an app where when the user taps on the bus icon, only bus stop annotations be added on the app. I notice severe stuttering in my view's animations as long as I add annotations in the ...
0
votes
1
answer
79
views
Custom MKClusterAnnotation failing on didSet
Have a custom MKClusterAnnotation named 'ClusterAnnotationView.' It is failing at 'assertionFailure' message when I'm not expecting it.
Here is the code:
//MARK: CLUSTER ANNOTATION
final class ...
0
votes
0
answers
315
views
Cannot convert value of type ... to expected. argument type CLLocationCoordinate2D
I'm trying to get a map view with annotations, and it seems like things have changed recently with iOS 17. I get an error with the below code in the No2 ADVANCED MAP section saying - Cannot convert ...
0
votes
1
answer
175
views
Changes to @Published array does not appear on Map() in MapKit
I am trying to implement map functionality into my app. I have run into issues with MapKit when using either UIKit and SwiftUI. Here's my problem. I have an @Published array called events inside a ...
0
votes
1
answer
321
views
Is there a MapKit JS event to detect when the map has finished loading?
Is there a MapKit JS event to detect when the map has finished loading?
The documentation does not show anything on how this is possible. Does anyone have a workaround that does not involve a ...
-2
votes
1
answer
92
views
How show map annotations when map span will be 0.1?
How show map annotations when map span will be 0.1?
I want map pins to not show until map span is <= 0.1
struct City: Identifiable {
let id = UUID()
let name: String
let coordinate: ...
1
vote
1
answer
495
views
SwiftUI MapKit - MapAnnotation - cause so many view updates errors - Can we use it in Production release?
I want to use MapKit along with MapAnnotation in SwiftUI. So I can have custom views as map pins and add tap gestures to them later.
But when I run the app, Xcode starts to show so many UI errors:
...
0
votes
1
answer
103
views
Hide information under map annotation
The default MapMarker hides information that is under it, for example a city name. If zoomed closed enough the marker doesn't cover the name anymore and the name is displayed. When using a custom ...
user avatar
user20495054
0
votes
0
answers
42
views
I want the button in annotation to always appear
The application I developed creates an annotation on the map when pressed and held. When this annotation is touched, the button and other information appear. But I want the button and other ...
0
votes
1
answer
2k
views
How to make a view conform to MapAnnotationProtocol
I have a tappable MapAnnotation and whenever I try to customize the "look" of the annotation pin, I get the following error:
Initializer 'init(coordinateRegion:interactionModes:...
1
vote
0
answers
75
views
Is there a way to know if the MKAnnotationView was selected by the user or programmatically?
I have a map with annotations, but when I select it programmatically, the map should do one logic on centering. When the user selects it, another logic must be done to center.
Is there a way to know ...
0
votes
2
answers
912
views
How to generate annotations on a certain zoom and only those close to where user zoomed in?
My app requests JSON data (latitude, longitude, and other information about a place) and then displays them on a map in a form of clickable annotations. I'm receiving around 30,000 of those, so as you ...