AttributeScopes.SwiftUIAttributes.ForegroundColorAttribute
A key for the color that draws a run of attributed text.
Declaration
@frozen enum ForegroundColorAttributeOverview
Set this key to tint part of a string without splitting it into several Text views:
var status = AttributedString("Low battery")
status.foregroundColor = .red
Text(status)