AttributeScopes.SwiftUIAttributes.FontAttribute
A key for the font of a run of attributed text.
Declaration
@frozen enum FontAttributeOverview
Access this key through the font property of an attribute container, or set it on an AttributedString and pass the result to a Text view:
var headline = AttributedString("On Sale")
headline.font = .headline
Text(headline)