From b95af61bdc734593b388c5d847e683238d7386c3 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 8 Nov 2022 15:08:58 -0600 Subject: [PATCH 1/4] renamed method since it was failing Signed-off-by: Matt Bruce --- VDS/Publishers/UIGestureRecognizer+Publisher.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } From 23946a254e77bf4348cc66e324e7a6b6a3f5793b Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 8 Nov 2022 15:09:07 -0600 Subject: [PATCH 2/4] updated var to remove warning Signed-off-by: Matt Bruce --- VDS/Components/Buttons/TextLinkCaret/TextLinkCaret.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 80f76a6a33a25a6d80b41db2046576e41357e6b6 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 9 Nov 2022 07:07:34 -0600 Subject: [PATCH 3/4] fixed bug in strikethrough Signed-off-by: Matt Bruce --- VDS/Components/RadioBox/RadioBox.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VDS/Components/RadioBox/RadioBox.swift b/VDS/Components/RadioBox/RadioBox.swift index b5a3c252..e384fc35 100644 --- a/VDS/Components/RadioBox/RadioBox.swift +++ b/VDS/Components/RadioBox/RadioBox.swift @@ -225,6 +225,7 @@ open class RadioBoxBase: Control, BinaryColorable, Accessable, DataTrackable{ setAccessibilityHint() setAccessibilityValue(isSelected) setAccessibilityLabel(isSelected) + setNeedsDisplay() } @@ -278,7 +279,7 @@ open class RadioBoxBase: Control, BinaryColorable, Accessable, DataTrackable{ selectorView.layer.cornerRadius = selectorCornerRadius selectorView.layer.borderWidth = borderWidth - setNeedsDisplay() + layer.setNeedsDisplay() } open override func layoutSubviews() { From 9d95a2c1ce6172ea73cf12562b7d3be722c700a3 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 9 Nov 2022 07:09:20 -0600 Subject: [PATCH 4/4] fixed issue with drawing layer Signed-off-by: Matt Bruce --- VDS/Components/RadioSwatch/RadioSwatch.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VDS/Components/RadioSwatch/RadioSwatch.swift b/VDS/Components/RadioSwatch/RadioSwatch.swift index f548f18d..0b39fd4a 100644 --- a/VDS/Components/RadioSwatch/RadioSwatch.swift +++ b/VDS/Components/RadioSwatch/RadioSwatch.swift @@ -142,7 +142,7 @@ open class RadioSwatchBase: Control, Accessable, DataTrackable, BinaryColorable setAccessibilityHint() setAccessibilityValue(isSelected) setAccessibilityLabel(isSelected) - setNeedsDisplay() + layer.setNeedsDisplay() } //--------------------------------------------------