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
try this
override public var selected: Bool { willSet(selectedValue) { self.selected = selectedValue // Do whatever you want } }