Dear all,
The Search fields documentation appears to make a distinction between putting a search in a tab bar and in a bottom toolbar in an iOS device.
Putting a search in a tab bar in iOS26 appears to be quick and easy:
Tab(role: .search) {
// Search
}
I cannot find, however, a way on how to put a search bar in a bottom toolbar (as illustrated here). The following code puts it in the top toolbar:
.searchable(text: $searchQuery, placement: .toolbar)
Same as this one:
.searchable(text: $searchQuery, placement: .toolbarPrincipal)
Do I miss something in this regard?
Thanks!