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 button = "Buttons"
|
||||||
case header = "Header"
|
case header = "Header"
|
||||||
case checkbox = "Checkbox"
|
|
||||||
case link = "Link"
|
case link = "Link"
|
||||||
|
|
||||||
var trait: UIAccessibilityTraits {
|
var trait: UIAccessibilityTraits {
|
||||||
@ -33,8 +32,6 @@ fileprivate enum RotorType: String, CaseIterable {
|
|||||||
///Filter block on model elements based on rotor type
|
///Filter block on model elements based on rotor type
|
||||||
var modelFilter: ((MoleculeModelProtocol) -> Bool) {
|
var modelFilter: ((MoleculeModelProtocol) -> Bool) {
|
||||||
switch self {
|
switch self {
|
||||||
case .checkbox:
|
|
||||||
return { $0 is CheckboxModel }
|
|
||||||
default:
|
default:
|
||||||
return { $0.accessibilityTraits?.contains(trait) ?? false }
|
return { $0.accessibilityTraits?.contains(trait) ?? false }
|
||||||
}
|
}
|
||||||
@ -43,8 +40,6 @@ fileprivate enum RotorType: String, CaseIterable {
|
|||||||
///Filter block on model UIElements based on rotor type
|
///Filter block on model UIElements based on rotor type
|
||||||
var filter: ((UIView) -> Bool) {
|
var filter: ((UIView) -> Bool) {
|
||||||
switch self {
|
switch self {
|
||||||
case .checkbox:
|
|
||||||
return { $0 is Checkbox }
|
|
||||||
default:
|
default:
|
||||||
return { $0.accessibilityTraits.contains(trait) }
|
return { $0.accessibilityTraits.contains(trait) }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user