Contents

search

The search item added by a View/searchable(text:isPresented:placement:prompt) modifier.

Declaration

static let search: ToolbarDefaultItemKind

Discussion

Use a .search default item kind with DefaultToolbarItem/init(kind:placment:) to customize the ToolbarItemPlacement of a default item kind. The search default item kind can be placed in the .bottomBar on iPhone only. All available platforms support .topBarTrailing and .automatic.