add passcode and touch ID
This commit is contained in:
parent
b022612e83
commit
a31e9776fe
8 changed files with 133 additions and 8 deletions
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
import UIKit
|
||||
import CoreData
|
||||
import PasscodeLock
|
||||
|
||||
@UIApplicationMain
|
||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
|
@ -23,6 +24,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|||
func applicationWillResignActive(_ application: UIApplication) {
|
||||
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
||||
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
|
||||
let passcodeEnterViewController = PasscodeLockViewController(state: .enter, configuration: Globals.shared.passcodeConfiguration)
|
||||
UIApplication.shared.keyWindow?.rootViewController?.present(passcodeEnterViewController, animated: true, completion: nil)
|
||||
}
|
||||
|
||||
func applicationDidEnterBackground(_ application: UIApplication) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue