ContainerBackgroundPlacement

The placement of a container background.

StructureiOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+ContainerBackgroundPlacement in SwiftUI

Declaration

React
type ContainerBackgroundPlacement = 'navigation' | 'navigationSplitView';
Swift
struct ContainerBackgroundPlacement

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

Type properties

Overview

This method controls where to place a background that you specify with the View.containerBackground(_:for:) or View.containerBackground(for:alignment:content:) modifier.

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

Used by

See also

More in Layout.