I have updated to Xcode 7.3 and some of my Libraries including Toast and CNPopupButton are giving me this error: Closure cannot have keyword arguments
And then it asks me to delete the argument Type Name.
What could be the problem here?
Since Swift 2.2 (which comes with Xcode 7.3) a declaration like:
button.selectionHandler = { (CNPPopupButton button) -> Void in
should be
button.selectionHandler = { (button : CNPPopupButton) -> Void in
Which indeed feels more Swift-ish. If you don't want to pin down the type, you can also use the short-hand syntax:
button.selectionHandler = { button in
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With