added back isEnabled override
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
02996e51e5
commit
c9180e9c36
@ -84,18 +84,16 @@ open class Control: UIControl, Handlerable, ViewProtocol, Resettable, UserInfoab
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// /// Override to deal with setNeedsUpdate()
|
/// Override to deal with setNeedsUpdate()
|
||||||
// open override var isEnabled: Bool {
|
open override var isEnabled: Bool {
|
||||||
// get { !disabled }
|
get { !disabled }
|
||||||
// set {
|
set {
|
||||||
// if disabled != !newValue {
|
if disabled != !newValue {
|
||||||
// disabled = !newValue
|
disabled = !newValue
|
||||||
// }
|
}
|
||||||
// isUserInteractionEnabled = isEnabled
|
}
|
||||||
// setNeedsUpdate()
|
}
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Initializers
|
// MARK: - Initializers
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
@ -80,6 +80,16 @@ open class ButtonBase: UIButton, Buttonable, Handlerable, ViewProtocol, Resettab
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Override to deal with setNeedsUpdate()
|
||||||
|
open override var isEnabled: Bool {
|
||||||
|
get { !disabled }
|
||||||
|
set {
|
||||||
|
if disabled != !newValue {
|
||||||
|
disabled = !newValue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
open override var state: UIControl.State {
|
open override var state: UIControl.State {
|
||||||
get {
|
get {
|
||||||
var state = super.state
|
var state = super.state
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user