ToolbarPlacement

The placement of a toolbar.

StructureiOS 16.0+macOS 13.0+tvOS 16.0+watchOS 9.0+ToolbarPlacement in SwiftUI

Declaration

React
type ToolbarPlacement =
  | 'automatic'
  | 'bottomBar'
  | 'navigationBar'
  | 'statusBar'
  | 'tabBar';
Swift
struct ToolbarPlacement

Pass a literal, or build one with SwiftUI.ToolbarPlacement from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Overview

Use this type in conjunction with modifiers like View.toolbarBackground(_:for:) and View.toolbarVisibility(_:for:) to customize the appearance of different bars managed by SwiftUI. Not all bars support all types of customizations.

See ToolbarItemPlacement to learn about the different regions of these toolbars that you can place your own controls into.

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Navigation.