AuthenticationOverlay provides a lock screen along with Biometric authentication.
Note: - Face ID authentication requires user's persmission to be add in info.plist.
<key>NSFaceIDUsageDescription</key>
<string>This app requires Face ID permission to authenticate using Face recognition.</string>- Works with Apple Touch ID and Face ID devices.
- Predefined error handling when recognition failed, adapted from the dependacy.
- Can be enabled or disabled within any class. Useful for providing user with option for biometric authentication.
- Adapts to the appearance of the device.
- Provides a button to call biometric authentication on the lock screen.
- Works in any orientation.
- Automatically locks the app when app is closed.
- iOS 14.1 or higher
- Xcode 12.0+
- Swift 5.2+
Add package to your project in Xcode using following link:
(https://github.com/developameya/AuthenticationOverlay.git)
AuthenticationOverlay depends on BiometricAuthentication package created by. rushisangani. You can find the original repository here:
(https://github.com/rushisangani/BiometricAuthentication)
Xcode will automatically download the necessary dependacy once you import the package in your product.
In your app's SceneDelegate
- import 'AuthenticationOverlay'.
import 'AuthenticationOverlay'- Add
AuthentictionOverlayViewController.shared.insert()insceneWillEnterForegroundandsceneDidEnterBackgroundmethods.
func sceneWillEnterForeground(_ scene: UIScene) {
AuthentictionOverlayViewController.shared.insert()
}
func sceneDidEnterBackground(_ scene: UIScene) {
AuthentictionOverlayViewController.shared.insert()
}
