100 Days of SwiftUI
2026-07-22
Project 14, part 2
MapKit and LocalAuthentication (TouchID and FaceID)
Integrating MapKit with SwiftUI
Maps have been available for a long time. It’s as easy as calling Map() in your view.
import MapKit!There are lots of modifiers available, including limiting users to a specific area, etc.
It’s can be fiddly to set locations and annotations, but it’s possible.
Getting the coordinates of where someone tapped on a map requires MapReader to wrap around the Map view.
Using Touch ID and Face ID with SwiftUI
For Face ID, you have to add a request in the Project Options
select your current target, go to the Info tab, right-click on an existing key, then choose Add Row. Scroll through the list of keys until you find “Privacy - Face ID Usage Description” and give it the value “We need to unlock your data.”
Then import LocalAuthentication
And there’s a lot of work around dealing with Objective-C
Another topic that I will need to look up again and again when I need to use it.