underline(_:color:)
Applies an underline to the text.
Declaration
nonisolated func underline(_ isActive: Bool = true, color: Color? = nil) -> TextParameters
- isActive:
A Boolean value that indicates whether the text has an underline.
- color:
The color of the underline. If
colorisnil, the underline uses the default foreground color.
Return Value
Text with a line running along its baseline.