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?
|
||||
|
||||
open override func initialSetup() {
|
||||
super.initialSetup()
|
||||
onClick = { control in
|
||||
control.toggle()
|
||||
}
|
||||
}
|
||||
|
||||
open override func setup() {
|
||||
super.setup()
|
||||
let layoutGuide = UILayoutGuide()
|
||||
@ -85,6 +92,9 @@ open class SelectorBase: Control, SelectorControlable {
|
||||
layer.borderWidth = VDSFormControls.widthBorder
|
||||
|
||||
}
|
||||
|
||||
open func toggle() { }
|
||||
|
||||
open override func updateView() {
|
||||
super.updateView()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user