Post

Replies

Boosts

Views

Activity

Reply to LocalAuthentication like Face ID crashes using swift 6 iOS 18.1
@DTS Engineer Hello Quinn thanks for answering, yes changing the method using async works. i will leave the method that works for me func authenticate() async { let context = LAContext() var error: NSError? if context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) { let reason = "We need to verify your identity" do { let success = try await context.evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, localizedReason: reason) await MainActor.run { self.isAuthenticated = success } } catch { print(error.localizedDescription) } } else { print("Biometrics not available: \(error?.localizedDescription ?? "Unknown error")") } } also i filled the bug before your answering, this is the bug number for the record. Dec 11, 2024 at 9:48 AM – FB16082108
1w