Search results for

Apple Maps Guides

154,038 results found

Post

Replies

Boosts

Views

Activity

Apple Maps Not responding to scrolling, zooming, or tap gestures on custom pins
Scrolling and zooming I have two apps that utilize the Apple Maps and since I updated my xcode to use IOS18, some of the functionalities have either been missing or glitching, and when I roll back to IOS17.5, everything seems to work fine. When I use MKMapView and use mapView.isZoomEnabled = true mapView.isScrollEnabled = true Scrolling and zooming is still not working on IOS18 but IOS17.5 works fine. Clicking on custom annotations When I press on a custom annotation I add to the MapView, the gesture is sometimes recognized and most of the times not recognized. If I have 20 annotations, there is a possibility only 2 of them respond to tap gestures. Below is how I define the annotation. Annotation(Pin, coordinate: CLLocationCoordinate2D(latitude: latitude, longitude: longitude), anchor: .bottom) { Button(action: {print (Pressed annotation){ CustomPin() } }
0
0
386
Oct ’24
How to use SwiftUI to display a map and handle touch on the map?
I want to use SwiftUI to display a map and handle touch on the map. Here is my code so far. I have a problem integrating GestureRecognizer in Coordinator specifically accessing self.mapView inside it.Also adding addGestureRecognizer. How to do that?=======================================//// ContentView.swiftimport SwiftUIimport Gomobiletidbstruct ContentView: View { var body: some View { VStack { MapView() .edgesIgnoringSafeArea(.vertical) Text(Turtle Rock) .font(.title) .padding(.leading, 15) .padding(.top, 5) .textFieldStyle(RoundedBorderTextFieldStyle()) VStack { HStack { Text(Joshua Tree National Park) .font(.subheadline) Spacer() Text(California) .font(.subheadline) } .padding() } }}=======================================//// MapView.swiftimport SwiftUIimport MapKitstruct MapView: UIViewRepresentable { func makeCoordinator() -> Coordinator { Coordinator(self) } final class Coordinator: NSObject, MKMapViewDelegate { var control: MapView init(_ control: MapView) { self.control = contr
1
0
3.8k
Aug ’19
Reply to Code iteration time out
(0 ..< numberOfQueries) .lazy .map { _ in Int(readLine()!)! } .map { array[(rotatedFirstIndex + $0) % endIndex] } .forEach { print($0) }0 ..< numberOfQueries is a CountableRange: a struct which you can think of as similar to an array of consecutive values, but for which there's no actual storage of these values. Its lazy property didn't need to be used, but I wanted to prevent an array being stored by each of the maps chained after it. You'll find information about lazy and forEach in the Swift Standard Library reference. The omission of parentheses around the closures provided to the map and forEach calls is known as trailing closure syntax, which is explained in The Swift Programming Language guide, and I strongly recommend you read that guide.The code could have been written as follows, but I wanted a little practice at writing in a more functional style.for _ in 0 ..< numberOfQueries { let queryIndex = Int(readLine()!)! let value = array[(rotatedFirstI
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’17
Attempt to map database failed
This looks like a refresh of an old question. I'm using iOS 15 beta 7 and have presented a UIActivityViewController from a SwiftUI app. I get a ton of these errors when trying to share a two-item list containing String and UISimpleTextPrintFormatter. [default] LaunchServices: store (null) or url (null) was nil: Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} [default] Attempt to map database failed: permission was denied. This attempt will not be retried. [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-54 process may not map database UserInfo={NSDebugDescription=process may not map database, _LSLine=264, _LSFunction=-[_LSDReadClient getServerStoreWithCompletionHandler:]} [default] -imageForImageDescriptor: can do IO please adopt -imageForDescriptor: for IO fr
4
0
7.5k
Aug ’21
shadow mapping woes
I stripped the MetalDeferredLighting demo down to just the shadow map bits. I removed the light fairies, skybox and bump mapping. However, I couldn't remove the (model) structure group, material, and scaling dependencies in favour of loading a simple quad.It would be nice if sample code did 1 thing, and with a minimal amount of code. Ideally, separate (digestible) demo projects for each technique.I managed to port the stripped down bits over to my project. The 2 pass render pipeline is in place and all the color attachments look good (I guess), but the shadows are glitchy. I've been hammering on this thing for a long, long, long time and have noticeably less hair. It's super frustrating when it kinda works...but not quite.Does anyone happen to have a simple demo? Like a cube casting a shadow on a ground plane?
1
0
797
Jun ’15
Maps not working
As soon as I start directions to a location, my phone freezes. It happens every time. IPhone 6s. Anyone experiencing this problem? Seems to working fine on friends 5s and 6. It just sticks on the initial location and gps never tracks. I can use every other function in the maps app but gps never tracks.
5
0
702
Jun ’16
Fitness app map missing
Yesterday each workout — like a run — would have a route show up on the app after the workout. After loading IOS 14 it has disappeared. No other changes made by me. Today’s run map is missing and all previous maps are missing. Looked for suggestions and nothing has worked.
1
0
243
Sep ’20