yankodimitrov/SwiftPasscodeLock

PasscodeLockViewController must have a successCallback

ziogaschr opened this issue · 3 comments

I have the need to set a successCallback to PasscodeLockViewController.
I see that there are two options:

  1. add a public var successCallback: ((lock: PasscodeLockType) -> Void)? which is then set as passcodeLockVC.successCallback
  2. make the passcodeLockVC a public var.

p.s.: Why the successCallback passes the lock: PasscodeLockType. Can you give me a good example? I might benefit from that.

I just found out something else. I would like to pass in PasscodeLockPresenter.presentPasscodeLock my own ViewController Class which inherits from PasscodeLockViewController. I do this, as I have to force some UI changes from code, that I can't apply in the .xib file.

I will add a PR soon

I am still working on it. I will include more things in the PR