- User starts the locking mechanism by tapping
Tap To Start. This sets a boolean to true that we'll check inSceneDelegate. - The app is restarted or moves away from the foreground.
- The app is initialized.
- We check for the boolean set in
1., if it's false we return and continue as normal. - If it's true, we present the
LockViewControllerin full screen on the window. LockViewControllertries to authenticate the user, when it succeeds it dismisses itself.
- Add a keypad to
LockViewControllerand have the user set a 4-6 digit passcode for the case where biometric auth doesnt work or isn't supported. - Be able to init
LockViewControllerin asetupmode so it can handle creating the passcode as well.