diff --git a/Config/BuildSettings.swift b/Config/BuildSettings.swift index 1c4cb8c4e..e01c42660 100644 --- a/Config/BuildSettings.swift +++ b/Config/BuildSettings.swift @@ -168,6 +168,10 @@ final class BuildSettings: NSObject { static let allowLocalContactsAccess: Bool = true + // MARK: - Feature Specifics + + /// Blocked pin codes. User won't be able to select one of the pin in the list. + static let blockedPINs: [String] = [] // MARK: - General Settings Screen diff --git a/Riot/Modules/SetPinCode/PinCodePreferences.swift b/Riot/Modules/SetPinCode/PinCodePreferences.swift index b42ed028f..40a6b8427 100644 --- a/Riot/Modules/SetPinCode/PinCodePreferences.swift +++ b/Riot/Modules/SetPinCode/PinCodePreferences.swift @@ -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) }