yankodimitrov / SwiftPasscodeLock

An iOS passcode lock with TouchID authentication written in Swift.
MIT License
680 stars 264 forks source link

Can I pass segue from passcode viewController? #80

Closed chirayu25 closed 5 years ago

chirayu25 commented 7 years ago

Can I pass segue from passcode ViewController to another ViewController wherein I allow to select folders where user want to enable password and dissmis that ViewController on Save?

chirayu25 commented 7 years ago

Can any one help me on this?

chirayu25 commented 7 years ago

Awaiting for any help on this.

jabwd commented 7 years ago

No you cannot as SwiftPasscodeLock creates an entirely new window that it replaces the main window with. If you want to use segues you'll need to instantiate a custom PasscodelockviewController that does not involve this window creation. that is the root view controller or some other view controller in your UINavigationController stack.

chirayu25 commented 7 years ago

@jabwd Thanks for the response. Can you suggest any library for the same?

jabwd commented 7 years ago

@chirayu25 Like I said you can still use this library, though I'd recommend changing it's layout because it will get you rejected from the AppStore.

If you want to use SwiftPasscodeLock just don't use the presenter, but manually use the PasscodeLockViewController directly.

Keep in mind that SwiftPasscodeLock is not secure. It does not clear memory of the passcode.