Move passcode lock to framework
This commit is contained in:
parent
639cd123cb
commit
7cf628638b
5 changed files with 34 additions and 42 deletions
25
passKit/Models/PasscodeLockConfiguration.swift
Normal file
25
passKit/Models/PasscodeLockConfiguration.swift
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
//
|
||||
// PasscodeLockConfiguration.swift
|
||||
// pass
|
||||
//
|
||||
// Created by Mingshen Sun on 7/2/2017.
|
||||
// Copyright © 2017 Bob Sun. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import PasscodeLock
|
||||
|
||||
public struct PasscodeLockConfiguration: PasscodeLockConfigurationType {
|
||||
|
||||
public static let shared = PasscodeLockConfiguration()
|
||||
|
||||
public let repository: PasscodeRepositoryType
|
||||
public let passcodeLength = 4
|
||||
public var isTouchIDAllowed = SharedDefaults[.isTouchIDOn]
|
||||
public let shouldRequestTouchIDImmediately = true
|
||||
public let maximumInccorectPasscodeAttempts = 3
|
||||
|
||||
init() {
|
||||
self.repository = PasscodeLockRepository()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue