// the find
rushisangani/BiometricAuthentication
Use Apple FaceID or TouchID authentication in your app using BiometricAuthentication.
A thin Swift wrapper around Apple's LocalAuthentication framework that handles Face ID and Touch ID with a simple closure-based API. It unifies device detection and error mapping so you don't have to write the same LAContext boilerplate in every app. Aimed at iOS developers who want the authentication plumbing done in five lines.
Covers all meaningful LAError cases with named enum variants rather than leaving you to match raw error codes. The allowableReuseDuration hook for post-unlock scenarios is a real usability consideration that most tutorials skip. Fallback title handling is clean — empty string hides the button, non-empty shows it, no extra config needed. Swift Package Manager support added alongside CocoaPods/Carthage.
Last commit was October 2021 — this predates iOS 16, 17, and 18, and Apple's LAContext has had changes since then (notably around biometricAuthenticationType and privacy prompts). The entire library is two source files totalling maybe 200 lines; at this point you're taking on a dependency for code you could write in an afternoon. No tests anywhere — not even a stub. Minimum deployment target of iOS 12 is fine historically but the README still says 'Swift 3.0+' which is embarrassing for a library last touched in the Swift 5 era.