Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,22 @@ struct MobilePrimaryTabScaffold<
primaryTabs

Tab(value: MobilePrimaryTab.search, role: .search) {
// Scoped to the search tab's content: a TabView-level
// searchable is inherited by every tab's navigation bar,
// which rendered a second, top search field on the
// workspaces and notifications tabs.
searchDestination
.searchable(
text: activeSearchText,
isPresented: searchPresentation,
prompt: activeSearchPrompt
)
.onSubmit(of: .search) {
selection = searchCoordinator.commitSubmit()
}
}
.accessibilityIdentifier("MobilePrimaryTabSearch")
}
.searchable(
text: activeSearchText,
isPresented: searchPresentation,
prompt: activeSearchPrompt
)
.onSubmit(of: .search) {
selection = searchCoordinator.commitSubmit()
}
.tabViewSearchActivation(.searchTabSelection)
.accessibilityIdentifier("MobilePrimaryTabs")
.onChange(of: selection, initial: true) { _, selection in
Expand Down