-
Notifications
You must be signed in to change notification settings - Fork 134
Abstract protocol prevents conforming in swift 1.2 #45
Comments
Hey @haswalt I'll check out your PR over the next few days. Is there a time frame you'd prefer this to be done by? edit: just realised that PR was done by your crew! |
Thanks @abury yeah my colleague submitted my changes as PR right after I posted this bug. |
This has been resolved in PR #48 |
I seem to be having this issue still with version 3.3.0 with Swift 1.2.. @haswalt @abury any pointers? I have a view controller that conforms to func padLockScreenViewController(padLockScreenViewController: ABPadLockScreenViewController!, validatePin pin: String!) -> Bool
func unlockWasSuccessfulForPadLockScreenViewController(padLockScreenViewController: ABPadLockScreenViewController!)
func unlockWasUnsuccessful(falsePin: String!, afterAttemptNumber attemptNumber: Int, padLockScreenViewController: ABPadLockScreenViewController!)
func unlockWasCancelledForPadLockScreenViewController(padLockScreenViewController: ABPadLockScreenViewController!)
func attemptsExpiredForPadLockScreenViewController(padLockScreenViewController: ABPadLockScreenViewController!) But I still get a compiler error saying
Of course, if I try to conform to func unlockWasCancelledForPadLockScreenViewController(padLockScreenViewController: ABPadLockScreenAbstractViewController!) the compiler complains about the conflicting |
Hey @ryanmeisters I havne't had much of a chance to test this on any swift codebase yet. I've been changing jobs, moving countries and having issues with my GCC thats stopping me from compiling in the command line (which means I can't push new versions of this to cocoa pods) and the only way to resolve this is to do a complete reinstall. It should start to slow down in the next week and i'm hoping to have a look at this in Swift and push a version thats more compatible. (Will probably update the example to use Swift as well) In the mean time @haswalt will hopefully be able to guide us in the right direction. |
@Jayvd well as happy as I am that this seems to be the best library, i'm sorry that I haven't managed to keep it up to date enough for you 😞 Life has been a bit crazy in the last few months after changing jobs and moving overseas and I haven't had the time to do it that i'd like. I'm sorry again for taking so long and thanks so much for your patience 😄 |
This will be resolved in 3.4.0, to be released very soon. |
Because of the abstract decleration of the protocol it's impossible to confirm to the ABPadLockScreenViewControllerProtocol because:
We removed the abstract protocol from our fork to make it work in swift but that's not ideal. Secondly I'd like to know more why there is the abstract? It doesn't seem to provide a great deal other than confusion and 2 places for the code to reside.
The text was updated successfully, but these errors were encountered: