From 5d7dab8879468bee10d92203b70f4dac5c58372d Mon Sep 17 00:00:00 2001 From: Keerthy Date: Wed, 1 Nov 2023 22:51:04 +0530 Subject: [PATCH] Removed checkbox from rotor --- MVMCoreUI/Accessibility/RotorHandler.swift | 5 ----- 1 file changed, 5 deletions(-) diff --git a/MVMCoreUI/Accessibility/RotorHandler.swift b/MVMCoreUI/Accessibility/RotorHandler.swift index 916b4c8d..d529564b 100644 --- a/MVMCoreUI/Accessibility/RotorHandler.swift +++ b/MVMCoreUI/Accessibility/RotorHandler.swift @@ -14,7 +14,6 @@ fileprivate enum RotorType: String, CaseIterable { case button = "Buttons" case header = "Header" - case checkbox = "Checkbox" case link = "Link" var trait: UIAccessibilityTraits { @@ -33,8 +32,6 @@ fileprivate enum RotorType: String, CaseIterable { ///Filter block on model elements based on rotor type var modelFilter: ((MoleculeModelProtocol) -> Bool) { switch self { - case .checkbox: - return { $0 is CheckboxModel } default: return { $0.accessibilityTraits?.contains(trait) ?? false } } @@ -43,8 +40,6 @@ fileprivate enum RotorType: String, CaseIterable { ///Filter block on model UIElements based on rotor type var filter: ((UIView) -> Bool) { switch self { - case .checkbox: - return { $0 is Checkbox } default: return { $0.accessibilityTraits.contains(trait) } }