foreground
The foreground style in the current context.
Declaration
static var foreground: ForegroundStyle { get }Discussion
Access this value to get the style SwiftUI uses for foreground elements, like text, symbols, and shapes, in the current context. Use the foregroundStyle(_:) modifier to set a new foreground style for a given view and its child views.
For information about how to use shape styles, see ShapeStyle.