Type Property 型プロパティ

background

The background style in the current context.

Declaration 宣言

static var background: BackgroundStyle { get }
Available when Self is BackgroundStyle.

Discussion 議論

Access this value to get the style SwiftUI uses for the background in the current context. The specific color that SwiftUI renders depends on factors like the platform and whether the user has turned on Dark Mode.

For information about how to use shape styles, see ShapeStyle.

See Also 参照

Semantic Styles