How to display the search field based on the users content.
Type Method
型メソッド
navigation
navigationBarDrawer(displayMode:)
The search field is placed in an drawer of the navigation bar.
Availability 有効性
- iOS 15.0+
- iPadOS 15.0+
- Mac Catalyst 15.0+
Technology
- Swift
UI
Declaration 宣言
static func navigationBarDrawer(displayMode: SearchFieldPlacement
.NavigationBarDrawerDisplayMode
) -> SearchFieldPlacement
Parameters パラメータ
displayMode
Discussion 議論
The drawer is beneath any navigation bar title, and collapses into the navigation bar as a user scrolls the content depending on the provided display mode.