I\'m making a UIButton subclass in Swift to perform custom drawing and animation on selection
What would be the equivalent in Swift of overriding - (void)setSe
- (void)setSe
you'd do it like e.g. this:
class MyButton : UIButton { // ... override var isSelected: Bool { willSet(newValue) { super.isSelected = newValue; // do your own business here... } } // ... }