Removed checkbox from rotor
This commit is contained in:
parent
975882d47c
commit
5d7dab8879
@ -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) }
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user