From 80f76a6a33a25a6d80b41db2046576e41357e6b6 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Wed, 9 Nov 2022 07:07:34 -0600 Subject: [PATCH 1/2] 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 2/2] 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() } //--------------------------------------------------