Add blocked pins build setting

This commit is contained in:
ismailgulek
2020-09-17 14:01:29 +03:00
parent 4357610b34
commit fc6e96b68a
2 changed files with 9 additions and 0 deletions

View File

@@ -51,6 +51,11 @@ final class PinCodePreferences: NSObject {
return BuildSettings.forcePinProtection
}
/// Blocked pin codes. User won't be able to select one of the pin in the list.
var blockedPINs: [String] {
return BuildSettings.blockedPINs
}
var isBiometricsAvailable: Bool {
return LAContext().canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil)
}