background
The background style in the current context.
Declaration
static var background: BackgroundStyle { get }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.