removed unused code & added hidden check
This commit is contained in:
parent
9c43649cce
commit
a3c4c2248c
@ -24,8 +24,6 @@ fileprivate enum RotorType: String, CaseIterable {
|
|||||||
return .header
|
return .header
|
||||||
case .link:
|
case .link:
|
||||||
return .link
|
return .link
|
||||||
default:
|
|
||||||
return .none
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +39,7 @@ fileprivate enum RotorType: String, CaseIterable {
|
|||||||
var filter: ((UIView) -> Bool) {
|
var filter: ((UIView) -> Bool) {
|
||||||
switch self {
|
switch self {
|
||||||
default:
|
default:
|
||||||
return { $0.accessibilityTraits.contains(trait) }
|
return { $0.accessibilityTraits.contains(trait) && !$0.isHidden }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user