BackgroundStyle

The background style in the current context.

StructureiOS 14.0+macOS 11.0+tvOS 14.0+watchOS 7.0+BackgroundStyle in SwiftUI

Declaration

React
type BackgroundStyle = SwiftOpaque<'BackgroundStyle'>;
Swift
@frozen struct BackgroundStyle

Overview

You can also use ShapeStyle.background to construct this style.

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

See also

More in Styles.