ClosuresKit A framewok like BlocksKit with using Swift . Install Pull "UIViewExt.swift" into the project. Usage The UIView and its subviews can do like this: button_2.whenTapped { () -> Void in print("button_2 has been clicked") }