I have created a custom UIButton class:
class MyButton: UIButton {
}
Then I added a UIButton to my storyboard and changed its class to MyButton.
Now when I right-click-drag the button to code, I am able to add Outlet but not Action. "Sent Events" section also disappears in property inspector. What could I be missing?
The only trick I've discovered until now is to change the button class back to UIButton, add the requested actions and then change back the class to MyButton :/ The bug is still there.
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