SwiftUI Maps & Location Fundamentals

Sep 29 2020 · Video Course (2 hrs, 26 mins) · Beginner

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.

5/5 4 Ratings

Version

  • Swift 5.3, iOS 14 Beta, Xcode 12

MapKit

Introduction

5:24 Free

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

1

Add a Map

12:35

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

2

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

3

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.

4

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

5

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

6

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

7

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.

8

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

9

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

10

Conclusion

1:26

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

11

Core Location

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

12

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

13

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

14

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

15

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

16

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

17

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

18

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.

19

Conclusion

3:26

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

20

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

Contributors

Comments