Since Swift 2.2 (which comes with Xcode 7.3), this declaration is like:
button.selectionHandler = { (CNPPopupButton button) -> Void in
it should be
button.selectionHandler = { (button : CNPPopupButton) -> Void in
Which really feels more swift-ish. If you do not want to specify a type, you can also use a short syntax:
button.selectionHandler = { button in
Steffen D. sommer
source share