     /// Setting to force protection by pin code
     var forcePinProtection: Bool {
         return RiotSettings.shared.forcePinProtection
+    }
+    
+    var isBiometricsAvailable: Bool {
+        return LAContext().canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil)
     }
     
     /// Allowed number of PIN trials before showing forgot help alert

        }
    }
    
    /// Resets user PIN
    func reset() {
        pin = nil
    }
}

    
    private struct StoreKeys {
        static let pin: String = "pin"
        static let biometricsEnabled: String = "biometricsEnabled"
    }
    
    static let shared = PinCodePreferences()
