"Searchable with .toolbarPrincipal incorrectly places search field at bottom instead of navigation bar"

When using .searchable with placement: .toolbarPrincipal inside a NavigationStack, the search field is incorrectly placed at the bottom of the view instead of the principal position where ToolbarPlacement.principal normally resides. This is confirmed by testing: a ToolbarItem with placement: .principal containing Text("Title") gets pushed away when the .searchable modifier is added, yet the search field still appears at the bottom rather than taking over the principal location as documented.

"Searchable with .toolbarPrincipal incorrectly places search field at bottom instead of navigation bar"
 
 
Q