onScrollUp
TypeScriptstatic get onScrollUp(): ToolbarMinimizationBehaviorSwift declarationstatic let onScrollUp: ToolbarMinimizationBehaviorMinimize when scrolling up.
struct · iOS 27.0+ · SDK 27.1
struct ToolbarMinimizationBehaviorThe minimization behavior of a toolbar. Use this type with the ``View/toolbarMinimizationBehavior(_:for:)`` modifier to control how toolbars minimize in response to scrolling. On iOS, you can minimize the navigation bar using ``onScrollDown`` or ``onScrollUp``: NavigationStack { ScrollView { // ... } .toolbarMinimizationBehavior( .onScrollDown, for: .navigationBar) }
static get onScrollUp(): ToolbarMinimizationBehaviorSwift declarationstatic let onScrollUp: ToolbarMinimizationBehaviorMinimize when scrolling up.
static get onScrollDown(): ToolbarMinimizationBehaviorSwift declarationstatic let onScrollDown: ToolbarMinimizationBehaviorMinimize when scrolling down.
static get never(): ToolbarMinimizationBehaviorSwift declarationstatic let never: ToolbarMinimizationBehaviorThe toolbar cannot be minimized.
static get automatic(): ToolbarMinimizationBehaviorSwift declarationstatic var automatic: ToolbarMinimizationBehavior { get }The system determines the minimize behavior. By default, navigation bars on iOS will minimize when the view has a searchable using the ``SearchFieldPlacement/toolbarPrincipal`` placement.
No declarations were skipped in this snapshot.