If, like me, you were bummed about the new iOS 26 behavior of searchable hiding all your other toolbar items while search is active, I got a pro-tip from one of the SwifUI engineers at Apple’s Developer Center today:
.searchPresentationToolbarBehavior(.avoidHidingContent)
That will ensure your toolbar items remain visible while the search bar is active.
To be clear, I actually think the default of hiding the buttons is a good thing. I’m just glad I can turn it off when I absolutely need a button present.
(Note: The search bar does take over the bottom toolbar on iOS, so don’t put anything in the .bottomBar of your toolbar if you are using searchable. Bad things will happen. Especially if that button appears or disappears as a result of search text changes.)