fixed bug adding onClick setup

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-06-05 11:56:00 -05:00
parent bdbc63e677
commit 05458e385b

View File

@ -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()