Hide Tab Bar On Scroll Down
Minimize the tab bar when downwards scrolling starts. Minimizing is supported for tab bars on only iPhone
Platform Compatibility
Tags
SwiftUI Code
TabView {
Tab("1", systemImage: "1.circle") {
List {
ForEach(0 ..< 100, id: \.self) {
Text("Item \($0)")
}
}
}
Tab("2", systemImage: "2.circle") {
EmptyView()
}
Tab("3", systemImage: "3.circle") {
EmptyView()
}
}
.tabBarMinimizeBehavior(.onScrollDown)Found an issue or have a suggestion?
More TabView Components
View allDefault Tab Bar Placement
Specifies the preferred placement for the tabs of a TabView in the sidebarAdaptable style on platforms where the tab bar cannot adapt between different representations, and only one representation can be shown. For example, on iOS, it can enforce the sidebar on large-screen devices like the Pro Max, and iPhone Duo. This modifier has no effect on iPadOS.
Default Collapsed Tab Section
Sets the default expansion state for the section containing this tab to collapsed when displayed in the sidebar.
Tab View Customization Behavior
Configures the customization behavior of customizable tab view content.
Tab View Customization
Specifies the customizations to apply to the sidebar representation of the tab view.
Explore Other Components
Browse allCustom Header Subscription Store View
Creates a view that loads all the subscriptions in a subscription group from the App Store, and merchandises them with custom marketing content.
Custom Labeled Content
Creates a standard labeled element, with a view that conveys the value of the element and a label.
Placeholder Icon Product View
Creates a view to load an individual product from the App Store, and merchandise it using its promotional image and a custom placeholder icon.
Product View
Creates a view to load and merchandise an individual product from the App Store.
Uniform Concentric Rectangle
Create a rectangle with the same corner style set on four corners.
Navigation Split View Container Background
A background placement behind the content of a NavigationSplitView.