fixed bug adding onClick setup
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
bdbc63e677
commit
05458e385b
@ -64,6 +64,13 @@ open class SelectorBase: Control, SelectorControlable {
|
|||||||
|
|
||||||
internal var shapeLayer: CAShapeLayer?
|
internal var shapeLayer: CAShapeLayer?
|
||||||
|
|
||||||
|
open override func initialSetup() {
|
||||||
|
super.initialSetup()
|
||||||
|
onClick = { control in
|
||||||
|
control.toggle()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
open override func setup() {
|
open override func setup() {
|
||||||
super.setup()
|
super.setup()
|
||||||
let layoutGuide = UILayoutGuide()
|
let layoutGuide = UILayoutGuide()
|
||||||
@ -85,6 +92,9 @@ open class SelectorBase: Control, SelectorControlable {
|
|||||||
layer.borderWidth = VDSFormControls.widthBorder
|
layer.borderWidth = VDSFormControls.widthBorder
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open func toggle() { }
|
||||||
|
|
||||||
open override func updateView() {
|
open override func updateView() {
|
||||||
super.updateView()
|
super.updateView()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user