diff --git a/Sources/ViewTypes/SearchField.swift b/Sources/ViewTypes/SearchField.swift index f7c5c9f..37b509a 100644 --- a/Sources/ViewTypes/SearchField.swift +++ b/Sources/ViewTypes/SearchField.swift @@ -35,7 +35,7 @@ extension tvOSViewVersion { private static var selector: IntrospectionSelector { .from(UINavigationController.self) { - $0.view.allDescendants.compactMap { $0 as? UISearchBar }.first + $0.view.allDescendants.lazy.compactMap { $0 as? UISearchBar }.first } } }