taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 9a16e79c13782230a63b465d0d5e1e2385bbcead
parent bc4bf52e36e64bab3da192191405b3296297548e
Author: Marc Stibane <marc@taler.net>
Date:   Fri, 20 Feb 2026 00:18:39 +0100

biometryType

Diffstat:
MTalerWallet1/Controllers/BiometricService.swift | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/TalerWallet1/Controllers/BiometricService.swift b/TalerWallet1/Controllers/BiometricService.swift @@ -1,5 +1,5 @@ /* - * This file is part of GNU Taler, ©2022-25 Taler Systems S.A. + * This file is part of GNU Taler, ©2022-26 Taler Systems S.A. * See LICENSE.md */ /** @@ -19,6 +19,13 @@ class BiometricService: ObservableObject { private var context: LAContext? + func biometryType() -> LABiometryType { + if context == nil { + resetContext() + } + return context?.biometryType ?? .none + } + func authenticateUser() { let reason = resetContext()