removed unused code & added hidden check

This commit is contained in:
Krishna Kishore Bandaru 2023-11-02 23:06:05 +05:30
parent 9c43649cce
commit a3c4c2248c

View File

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