All Questions
7
questions
0
votes
0
answers
108
views
Cannot navigate to view from mapview calloutAccessoryControlTapped delegate method
When user taps on mapview annotation rightCalloutAccessoryView disclosure button, I want to navigate to another view
struct ProfileMapView: View {
var body: some View {
NavigationView {
...
0
votes
0
answers
41
views
Argument passed to call that takes no arguments SwiftUI for MapView
I am passing an argument locationPins into MyMapView as a Binding and then again pass locationPins to MapView as another Binding. But when I pass it to MapView as an argument I get error: "...
0
votes
0
answers
64
views
Error while accessing core data inside Mapview SwiftUI
I have MapView working for a single Marker. I want to access core data entity and based on the number of items it consists of, I want to create corresponding number of Markers.
So inside MapView I ...
0
votes
1
answer
258
views
MapView does not show user current location
I was trying to display my current location into a Swiftui MapView. To do so, I created the following class:
import SwiftUI
import CoreLocation
import Combine
class LocationManager: NSObject, ...
2
votes
1
answer
912
views
SwiftUI Map: How to convert screen coordinates to map coordinates?
Setup:
I am converting an app to SwiftUI. This app had an MKMapView with annotations that could be dragged on the map.
I was able to write a first version of the SwiftUI app with a draggable image.
It ...
1
vote
1
answer
231
views
Map annotations only appear after map is moved
I have a map which loads annotations from the Google API, when the map initially loads all the annotations they are 'placed' as seen through the print in the console, however they won't show up on the ...
1
vote
1
answer
426
views
Swift: Problem with @Binding a region to a MKMapView and calling setRegion(). setRegion() not doing anything
I am new to Swift so this may be a problem due to my inexperience. I am trying to bind a MKCoordinateRegion variable in the MapView struct so that the map is automatically centered on the user, but ...