
Explore maps in SwiftUI using MapKit, learn to integrate maps, drop markers and pins, build custom map annotations, and switch between map types with user tracking in six guided examples.
Learn to build a basic map in SwiftUI with MapKit by binding an MKCoordinateRegion to a region state and centering on the Golden Gate Bridge, adjusting zoom.
Explore map interaction modes in SwiftUI MapKit, including pan and zoom, pen gesture, and how to restrict or disable interactions.
Learn how to add map annotations with a simple API in MapKit, using an identifiable annotation item with name and coordinates to display markers and pins on SwiftUI maps.
Create a custom map annotation in SwiftUI using map annotation and coordinates. Adjust the anchor point to position the annotation view and customize its content.
Wrap MKMapView in a SwiftUI UIViewRepresentable to expose map types, region, and rotation, then switch between standard, hybrid, and satellite maps with a segmented picker.
Track user location in SwiftUI maps with MapKit using a location manager, request when-in-use permission, and display live location on the map while respecting user privacy.
Learn to build custom map annotations with callout animation in SwiftUI using MapKit, including a data model for places, custom annotation views, and image-backed callouts.
Map view was introduced in the world of SwiftUI with the release of iOS 14. Map is a view that displays an embedded map interface. Map view displays a region and you can use this view natively in SwiftUI view. Map view has many configuration options which will allow you to display or track a location and even interact with the map on the view.
SwiftUI map is great to bring up maps and display some of the basic functionalities in the map but its no match to UIKit version of MKMapView. But the porting over UIKit map is easy. In this course we will start with a simple map and explore all the functionalities there are for maps to offer from SwiftUI's. From there we will explore some of the advance options map map annotations and map markers. We will also build map marker using pure SwiftUI views.
SwiftUI map version doesn't support different types of maps yet but we can add that support by building UIKit version of the map. This map will allows us to support map type of SwiftUI world.
We will also explore ability to add core location framework to support user's location tracking along with subscribing to receive published user location as they move in the map.