SwiftUI Maps & Location Fundamentals

Learn how to use MapKit and Core Location to integrate mapping and locations services into your app. With this technology, you can orient your users, provide directions, and even create your own visual maps. By Brian Moakley.

Leave a rating/review
Save for later
Comments
Share

Who is this for?

Beginning developers. Students should have both a working knowledge of Swift and SwiftUI. Developers should be comfortable with working with Xcode and know how to test an app on a device.

You'll start by embedding a simple map in your app then level up your skills by adding custom annotations. You'll learn how filter and take snapshots of maps. Then, you'll learn the power of Core Location and how you can use it to provide directions, track distance and enable region monitoring.

Covered concepts

  • SwiftUI and MapKit
  • Annotating Maps
  • Filtering and Searching Maps
  • Taking MapSnapshots
  • Requesting Permission
  • Measuring Distance
  • Geoencoding Locations
  • Updating from the Background
  • Region Monitoring

Part 1: MapKit

01
Toggle description

Learn the basics of MapKit and Core Location and discover some of the cool features that you can incorporate into your app.

Add a Map 12:35
Toggle description

In the Interesting Places sample app, you'll learn how to embed a map into your SwiftUI app.

Toggle description

This episode covers some of the basics of map interaction and what you can do to enable or disable them.

Toggle description

Map annotations are critical for pointing out locations and points of interest. In this episode, you'll learn how to add them to your map.

Toggle description

Now that you have one annotation, your challenge is to now add a whole lot more.

Toggle description

To really unlock the power of MapKit, you'll need to use the UIKit version of the Map.

Toggle description

UIKit's map annotations bring some different features to the table. Learn how these features will improve a user's map experience.

Toggle description

Once you have a lot of map annotations, the results can be chaotic. Thankfully, you can cluster them as you'll learn in this episode.

Toggle description

Learn how to determine the items that actually appear on your map.

Toggle description

Sometimes you don't need an interactive map, just a picture of one. In this episode, you'll learn how to take a snapshot.

Conclusion 1:26
Toggle description

Review what you've learned about MapKit, then get a preview of what you'll learn next: Core Location.

Part 2: Core Location

Toggle description

Once you have a good idea on how to render maps, you can take it to the next level by using Core Location.

Toggle description

Before working with Core Data, it is critical to understand the various components that power it.

Toggle description

This episode breaks down the permission structure of Core Location and MapKit when requesting a user's location.

Toggle description

Once you have two locations, you might want to measure the distance between them. Your challenge is to do this.

Toggle description

Learn how to receive location updates while your app is in the background.

Toggle description

Geocoding allows you to turn location coordinates into addresses, which you'll learn about in this episode.

Toggle description

You've converted coordinates into addresses, but now your challenge is to convert addresses into coordinates.

Toggle description

Core Location provides excellent tools that allow you to track when a user has entered or exited a region. Let's see how they work.

Conclusion 3:26
Toggle description

Congrats on finishing the course! Review what you've learned, and find out where to go from here.