override var enabled:Bool { didSet { //Your code } }
Swift 3.0
override var isEnabled:Bool { didSet { //Your code } }