blockchainethereumblockchain-walleterc20erc721walletxdaidappdecentralizederc1155erc875iosswifttokens
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
898 B
31 lines
898 B
// Copyright SIX DAY LLC. All rights reserved.
|
|
|
|
import Foundation
|
|
import VENTouchLock
|
|
|
|
class TouchRegistrar {
|
|
|
|
struct Keys {
|
|
static let service = "trust.lock"
|
|
static let account = "trust.account"
|
|
}
|
|
|
|
init() {}
|
|
|
|
func register() {
|
|
VENTouchLock.sharedInstance().setKeychainService(
|
|
Keys.service,
|
|
keychainAccount: Keys.account,
|
|
touchIDReason: "Use your fingerprint to access your wallet",
|
|
passcodeAttemptLimit: 5,
|
|
splashViewControllerClass: SplashViewController.self
|
|
)
|
|
VENTouchLock.sharedInstance().backgroundLockVisible = true
|
|
VENTouchLockAppearance().splashShouldEmbedInNavigationController = true
|
|
VENTouchLockAppearance().touchIDCancelPresentsPasscodeViewController = false
|
|
}
|
|
|
|
func unregister() {
|
|
VENTouchLock.sharedInstance().deletePasscode()
|
|
}
|
|
}
|
|
|