Removed checkbox from rotor

This commit is contained in:
Keerthy 2023-11-01 22:51:04 +05:30
parent 975882d47c
commit 5d7dab8879

View File

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