Repository navigation
SwiftPackage, async-await and more..
What's new in version 4.0.0
- async/await support -
authenticateWithBiometricsandauthenticateWithPasscodeare nowasync throwsand simply return on success. Completion-handler variants are still available, are called on the main actor and receiveResult<Void, AuthenticationError>. - Swiftier names -
authenticateWithBioMetricsis nowauthenticateWithBiometrics,isFaceIdDevice()is nowisFaceIDDevice(), andAuthenticationError.initWithError(_:)is nowAuthenticationError(_:). - Struct based, no singleton -
BiometricAuthenticatoris now a lightweightSendablestruct instead ofBioMetricAuthenticator.shared. - Localized strings - All messages are looked up in your own bundle and strings table (
.stringsor.xcstrings), with built-in English defaults for any missing key. - More error cases -
AuthenticationErrornow coverscanceledByApp,invalidContext,notInteractiveandcompanionNotAvailable, matching Apple'sLAError. - Optic ID support for Apple Vision Pro.
AuthenticationErrorconforms toLocalizedError, soerror.localizedDescriptionreturns a readable message.- Swift Package Manager support with a privacy manifest (
PrivacyInfo.xcprivacy), DocC documentation and unit tests written with Swift Testing. - Minimum deployment target is now iOS 15.0.
See Migrating from 3.x for API changes.