wip [skip ci]

This commit is contained in:
David Roman 2023-06-03 20:57:35 +01:00
parent 4db85b6430
commit c22ceb5666
No known key found for this signature in database
GPG Key ID: 7058646EEFCB70A7
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ final class SearchFieldTests: XCTestCase {
.introspect(.searchField, on: .iOS(.v15, .v16), .tvOS(.v15, .v16), customize: spy) .introspect(.searchField, on: .iOS(.v15, .v16), .tvOS(.v15, .v16), customize: spy)
#endif #endif
#if os(iOS) #if os(iOS)
// NB: this is necessary for ancestor introspection to work, because initially on iPad the "Customized" text isn't shown as it's hidden in the sidebar. This is why ancestor introspection is discouraged for most situations and it's opt-in. // NB: this is necessary for introspection to work, because on iPad the search field is in the sidebar, which is initially hidden.
.introspect(.navigationView(style: .columns), on: .iOS(.v13, .v14, .v15, .v16)) { .introspect(.navigationView(style: .columns), on: .iOS(.v13, .v14, .v15, .v16)) {
$0.preferredDisplayMode = .oneOverSecondary $0.preferredDisplayMode = .oneOverSecondary
} }
@ -89,7 +89,7 @@ final class SearchFieldTests: XCTestCase {
} }
.navigationViewStyle(DoubleColumnNavigationViewStyle()) .navigationViewStyle(DoubleColumnNavigationViewStyle())
#if os(iOS) #if os(iOS)
// NB: this is necessary for ancestor introspection to work, because initially on iPad the "Customized" text isn't shown as it's hidden in the sidebar. This is why ancestor introspection is discouraged for most situations and it's opt-in. // NB: this is necessary for introspection to work, because on iPad the search field is in the sidebar, which is initially hidden.
.introspect(.navigationView(style: .columns), on: .iOS(.v13, .v14, .v15, .v16)) { .introspect(.navigationView(style: .columns), on: .iOS(.v13, .v14, .v15, .v16)) {
$0.preferredDisplayMode = .oneOverSecondary $0.preferredDisplayMode = .oneOverSecondary
} }