Рет қаралды 36,515
Create a biometrics authentication system in SwiftUI
In this tutorial, we'll build an authentication system with FaceID and TouchID, and fallback to a login with credentials if FaceID fails or if the device doesn't support biometrics auth.
🔗 Links mentioned in the video:
➡ Firebase Auth tutorial: designcode.io/swiftui-advance...
➡ Local Authentication documentation: developer.apple.com/documenta...
➡ LAContext documentation: developer.apple.com/documenta...
➡ Biometry type documentation: developer.apple.com/documenta...
✏️ Access the written version of this tutorial and the source files:
➡ Part 1: designcode.io/quick-apps-swif...
➡ Part 2: designcode.io/quick-apps-swif...
➡ Part 3: designcode.io/quick-apps-swif...
👩🏻💻 Source code on Github:
➡ github.com/stephdiep/Biometri...
🪄 Join our channel and unlock members-only perks:
➡ / @designcodeteam
👋🏻 Let's connect!
➡ Twitter: / diepsteph
🎞 Video timestamps
➡ Part 1 - Create the project and code the LoginView
0:00 - Introduction
2:04 - Create Xcode project
3:34 - Code the LoginView
➡ Part 2 - Code the AuthenticationManager
9:54 - Create the AuthenticationManager
10:57 - Update Info.plist file
12:23 - Get biometryType
15:00 - Connect AuthenticationManager to views
15:56 - Add dynamic button based on biometryType
18:24 - Authenticate with biometrics
22:16 - Error handling
➡ Part 3 - Log in and log out flow
24:35 - Connect function to UI
26:18 - Test the application
28:23 - Credentials login
35:34 - Logged in screen
37:12 - Logout process
37:47 - Conclusion - Taking it further
#faceid #swiftui #tutorial