I'm working with Swift and learning about @IBInspectable. I would like to know if it's possible create a custom view that allow other views and viewControllers to set a inner button action, as a ViewController links an IBAction directly to a button that it has.
I can create a @IBInspectable in my custom view with Selector type, but it's not visible to other classes in Interface Builder.
@IBInspectable private var touchUpInside =
NSSelectorFromString("didClickButton") {
didSet {
button.addTarget(self, action: "touchUpInside", forControlEvents: UIControlEvents.TouchUpInside)
}
}
But not visible
Thanks!