rushisangani / BiometricAuthentication

Use Apple FaceID or TouchID authentication in your app using BiometricAuthentication.
MIT License
831 stars 110 forks source link

Fix Xcode 10 build error #21

Closed ColdGrub1384 closed 6 years ago

ColdGrub1384 commented 6 years ago

Fixes the issue #20.

AuthenticationError.`init`(error: err as! LAError)
worked for me but not
AuthenticationError.init(error: err as! LAError)

rushisangani commented 6 years ago

Hi @ColdGrub1384 Thanks for using this framework and providing your valuable solutions.

I've implemented a better version of the method name which would work for older and newer version of XCode. public static func initWithError(_ error: LAError) -> AuthenticationError

You can use it in BiometricAuthentication (2.0).

Thanks :)