5,999 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
0
answers
82
views
CLGeocoder deprecation: How can I obtain geocoding bounds in MapKit?
I am currently using CLGeocoder in weather app on iOS to handle user's location queries. I then use the region property of the resulting CLPlacemark objects to obtain the region corresponding to the ...
Advice
0
votes
5
replies
63
views
Strange behavior draggesture
I am exploring the use of drag gestures.
Below is a small test code to see what happens and because I want to know the location on the screen / map.
The first time I drag, it works fine, but when I ...
Best practices
1
vote
0
replies
46
views
SwiftUI displaying sublocality to users since ".placemark, CLPlacemark, CLGeocoder" are deprecated
I had an app where, based on the users location, his/her sublocality was displayed.
func getUserSubLocality() async {
do {
if let request = MKReverseGeocodingRequest(location: userLocation)...
Best practices
0
votes
0
replies
51
views
SwiftUI Map menu / chrome placement — three approaches (overlay, ZStack + safeAreaPadding, safeAreaInset): which one is best practice?
I’m building a full-screen Map (MapKit + SwiftUI) with persistent top/bottom chrome (menu buttons on top, session stats + map controls on bottom). I have three working implementations and I’d like ...
0
votes
2
answers
245
views
SwiftUI map & list draggable resizing issue
I am trying to create a resizable split view in SwiftUI where a Map is on top and a List(which will contain locations later) is on the bottom, separated by a draggable handle. The user should be able ...
0
votes
1
answer
138
views
MapAnnotation custom callout button action not working
I am trying to display a map with custom annotations (pins) and custom callout views in SwiftUI.
My Goal:
A user taps on a map pin.
A custom callout view appears above the pin.
This callout view ...
2
votes
1
answer
276
views
iOS26 `onTapGesture` when applied to a Map does not respond
When a onTapGesture is applied to Map the gesture does not respond in iOS26.
e.g
import SwiftUI
import MapKit
struct ContentView: View {
var merp: String {
if #available(iOS 26.0, *) ...
2
votes
1
answer
180
views
Ghost search bar appears when popping back in using .searchable on iOS 26
I named this issue similarly to something I found on Reddit, but in my case the problem occurs in a different situation and I’d like to find out how to fix it and why it happens. link
Steps to ...
0
votes
0
answers
179
views
How to use Apple's Mapkit to identify specific types of transport?
Using apple's mapkit, MKPointOfInterestCategory, the only closest subcategory to being able to identify busstops/ train stations is 'public transport' However, in apple maps, upon 'search>find ...
1
vote
2
answers
193
views
iOS 17 Map view does not respect animation duration
With the following piece of code:
import SwiftUI
import MapKit
struct ContentView: View {
private static let initialLocation = CLLocationCoordinate2D(latitude: 46, longitude: 9)
@...
-1
votes
1
answer
300
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
0
answers
22
views
MapKit muted not showing traffic
There doesnt appear to be anything in the docs, but when using the Muted view for MapKit, it doesnt show traffic. When you use default or hybrid its fine.
XCode 26 Beta 3, iOS26 Public Beta
// this ...
1
vote
2
answers
112
views
MapKit: MKDirections cycling is available?
I'm working on a bike application and wanted to use MapKit MKDirections to calculate some routes, on the official Apple documentation, the cycling MKDirectionsTransportType seems to be available from ...
0
votes
1
answer
85
views
Annotation with image are not at the right place when showing it in the map
I recently post a question about having clickable marker on a map thanks to annotations here.
With the popup, the annotation is never at the right position, which make the shadow be at different ...
0
votes
1
answer
73
views
How to make annotation popup without using fixed frame width/height?
I'm using Swift and MapKit, and I want to show popup like this (when you click on the marker) :
With:
A text that correspond to a header (background in brown) that should take the full width of the ...