Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Password protect a swift app with Touch ID

I am creating an app where a user can store other peoples information and I would like to allow users to protect the information stored in my app using a passcode or Touch ID (If their device supports it).

I have already got the Touch ID part working thanks to apple's documentation, but I am kind of stuck on how to implement the passcode lock. Will i have to create another view controller for that passcode-entry? How can I ensure that my app does not have access to users passcodes (in case the app gets hacked or run on a jailbroken device)? Does Apple provide a framework or library for this purpose?

Can someone point me to some source code or documentation I can use?

like image 657
MoralCode Avatar asked Oct 24 '25 19:10

MoralCode


2 Answers

You can try this library, which looks very promising and its written in Swift from @yankodimitrov. SwiftPasscodeLock

like image 132
ziogaschr Avatar answered Oct 26 '25 07:10

ziogaschr


You could use a library like VENTouchLock

Or you could look through its implementation and see how it works in order to replicate it.

like image 35
Andrew Avatar answered Oct 26 '25 07:10

Andrew



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!