Latest0.2.2
Homepagehttps://github.com/ahujamanish/gatekeeper
LicenseMIT
Platformsios 11.0
Authors

Gatekeeper

Gatekeeper lets you add TouchId/FaceId authentication in your app with a single line of code. Once configured, your app will prompt the user to authenticate with TouchId/FaceId (if available and enabled on the device) before allowing the user to access the app.

Installation

Cocoapods

To integrate GateKeeper into your Xcode project using CocoaPods, specify it in your Podfile:

Swift 4.0

  pod 'GateKeeper', :git => 'https://github.com/ahujamanish/GateKeeper.git'

Example

Simply add the following line in your Application’s AppDelegate

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
...    
        window?.makeKeyAndVisible()
        GateKeeper.shared.configure(enabled: true)
...
        return true
}

Also, make sure to add the following entry in your project’s Info.plist to provide usage description for Face Id:

        <key>NSFaceIDUsageDescription</key>
        <string>Allow <Your App Name> access to Face Id for Authentication</string>

You can enable/disable authentication at any point by:

...
        GateKeeper.shared.enabled = true
...

Licence

GateKeeper is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "GateKeeper",
    "version": "0.2.2",
    "summary": "Plug and Play TouchId/FaceId Authenticator for your app",
    "description": "Plug and Play TouchId/FaceId Authenticator for your app!",
    "homepage": "https://github.com/ahujamanish/gatekeeper",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Manish Ahuja": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ahujamanish/gatekeeper.git",
        "tag": "0.2.2"
    },
    "platforms": {
        "ios": "11.0"
    },
    "source_files": "GateKeeper/Source/*.swift",
    "resources": "GateKeeper/Source/*.{xib,storyboard,xcassets}"
}

Pin It on Pinterest

Share This