diff --git a/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift b/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift index daed1a42..224f3466 100644 --- a/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift +++ b/VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift @@ -105,7 +105,7 @@ open class TextLinkCaret: Control { //-------------------------------------------------- open override func updateView() { - var updatedText = text ?? "" + let updatedText = text ?? "" caretView.surface = surface caretView.disabled = disabled diff --git a/VDS/Components/RadioBox/RadioBox.swift b/VDS/Components/RadioBox/RadioBox.swift index 029c3203..bc474cbe 100644 --- a/VDS/Components/RadioBox/RadioBox.swift +++ b/VDS/Components/RadioBox/RadioBox.swift @@ -253,6 +253,7 @@ open class RadioBoxBase: Control, BinaryColorable, Accessable, DataTrackable{ setAccessibilityHint() setAccessibilityValue(isSelected) setAccessibilityLabel(isSelected) + setNeedsDisplay() } @@ -306,7 +307,7 @@ open class RadioBoxBase: Control, BinaryColorable, Accessable, DataTrackable{ selectorView.layer.cornerRadius = selectorCornerRadius selectorView.layer.borderWidth = borderWidth - setNeedsDisplay() + layer.setNeedsDisplay() } open override func layoutSubviews() { diff --git a/VDS/Components/RadioSwatch/RadioSwatch.swift b/VDS/Components/RadioSwatch/RadioSwatch.swift index c3df2853..758e5911 100644 --- a/VDS/Components/RadioSwatch/RadioSwatch.swift +++ b/VDS/Components/RadioSwatch/RadioSwatch.swift @@ -138,7 +138,7 @@ open class RadioSwatchBase: Control, Accessable, DataTrackable, BinaryColorable setAccessibilityHint() setAccessibilityValue(isSelected) setAccessibilityLabel(isSelected) - setNeedsDisplay() + layer.setNeedsDisplay() } //-------------------------------------------------- diff --git a/VDS/Publishers/UIGestureRecognizer+Publisher.swift b/VDS/Publishers/UIGestureRecognizer+Publisher.swift index ae9c7108..06325ff9 100644 --- a/VDS/Publishers/UIGestureRecognizer+Publisher.swift +++ b/VDS/Publishers/UIGestureRecognizer+Publisher.swift @@ -43,11 +43,11 @@ extension UIGestureRecognizer { self.subscriber = subscriber self.gestureRecognizer = gestureRecognizer self.view = view - gestureRecognizer.addTarget(self, action: #selector(handle)) + gestureRecognizer.addTarget(self, action: #selector(gestureHandler)) view.addGestureRecognizer(gestureRecognizer) } - @objc private func handle(_ gesture: UIGestureRecognizer) { + @objc private func gestureHandler(_ gesture: UIGestureRecognizer) { _ = subscriber?.receive(gestureRecognizer) }