AttributeScopes.SwiftUIAttributes.UnderlineStyleAttribute
A key for the line drawn under a run of attributed text.
Declaration
@frozen enum UnderlineStyleAttributeOverview
Set this key to underline part of a string, such as a term that leads somewhere. The value carries both the pattern and the color of the line:
var terms = AttributedString("Terms of Service")
terms.underlineStyle = .single
Text(terms)