ToolbarMinimizationRestoration
The restoration behavior during toolbar minimization.
Declaration
type ToolbarMinimizationRestoration = 'atScrollEdge' | 'automatic';struct ToolbarMinimizationRestorationPass a literal, or build one with SwiftUI.ToolbarMinimizationRestoration from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'atScrollEdge'SwiftUI.ToolbarMinimizationRestoration.atScrollEdgeThe toolbar restores only when the scroll view's content reaches the scroll edge.
'automatic'SwiftUI.ToolbarMinimizationRestoration.automaticThe system determines the restoration behavior.
Overview
Use this type with the View.toolbarMinimizationRestoration(_:for:)
modifier to control when a minimized toolbar restores. By default the
toolbar restores when the user reverses scroll direction; with
atScrollEdge, the toolbar instead restores only when the scroll
view's content reaches the scroll edge -- appropriate for screens
where the bar is mostly chrome that doesn't need to follow the user.
.toolbarMinimizationBehavior(
.onScrollDown, for: .navigationBar)
.toolbarMinimizationRestoration(
.atScrollEdge, for: .navigationBar)From Apple’s SwiftUI documentation. Code samples there are Swift.
Used by
See also
More in Navigation.
- AdaptableTabBarPlacementA placement for tabs in a tab view using the adaptable sidebar style.
- AutomaticNavigationTransitionA style that automatically chooses the appropriate presentation transition for the current context.
- ContentToolbarPlacementA region of the interface that hosts its own toolbar content.
- CrossFadeNavigationTransitionA navigation transition that cross-fades between the appearing view and the disappearing view.
- DismissSearchActionAn action that can end a search interaction.
- NavigationBarItemTitleDisplayModeA style for displaying the title of a navigation bar.
- NavigationPathA type-erased list of data representing the content of a navigation stack.
- NavigationPathChainNavigationPath with chained calls: SwiftUI.NavigationPath.append(...).
- NavigationPathCodableRepresentationA serializable representation of a navigation path.
- NavigationSplitViewColumnA view that represents a column in a navigation split view.
- NavigationSplitViewVisibilityThe visibility of the leading columns in a navigation split view.
- NavigationTransitionA type that defines the transition to use when navigating to a view.