Open AndyIbanez opened 8 years ago
I checked the demo again and found my answer. I need to call it manually on the successCallback:
passcodeViewController.successCallback = { lock in
lock.repository.deletePasscode()
}
I will probably try to contribute a much better documentation for this project. It's great but really lacking in that area.
:+1: @AndyIbanez please feel free to make a PR
I would think that this is an inconsistency of the library and that the library will be better to handle it. Although it is hard to fix it and be backward compatible.
@AndyIbanez nice way to handle this for now 👍
Hey guys.
First, thanks for forking and reviving this project. While the documentation could use some improvement, I really like this component and it's a shame the original maintainer has basically abandoned the project.
But anyway, to the point:
Like the title says, deletePasscode() doesn't seem to be getting called at all. Here's some code:
It presents the view controller without any issues:
The PasscodeLockConfiguration and PasscodeLockRepository look like this:
The
print("bro?")
line never gets executed, so let alone the rest of the lines inside thedeletePasscode
method. The other three methods get called with no issue, but for some reason deletePasscode doesn't get called, not even when the view controller is presented and I put in my passcode to remove it.