 
 public extension ActionTrailing where Self: NSMenuItem {
 
-    func addAction(_ handle: @escaping (Self) -> Void) {
-        self.setAction(handle)
+    func addAction(_ handler: @escaping (Self) -> Void) {
+        self.setAction(handler)
         self.action = #selector(handleAction)
         self.target = self
     }


public extension ActionTrailing where Self: UIControl {

    func addAction(_ handle: @escaping (Self) -> Void, for controlEvents: UIControlEvents) {
        self.setAction(handle)
        self.addTarget(self, action: #selector(handleAction), for: controlEvents)
    }
}


public extension ActionTrailing where Self: UIGestureRecognizer {

    func addAction(_ handler: @escaping (Self) -> Void) {
        self.setAction(handler)
        self.addTarget(self, action: #selector(handleAction))
    }
}

extension UIBarButtonItem: ActionTrailing {}

public extension ActionTrailing where Self: UIBarButtonItem {

    func addAction(_ handler: @escaping (Self) -> Void) {
        self.setAction(handler)
        self.target = self
        self.action = #selector(handleAction)
    }
}

#elseif os(OSX)
import AppKit

