strikethrough(_:pattern:color:)
Applies a strikethrough to the text.
Declaration
nonisolated func strikethrough(_ isActive: Bool = true, pattern: Text.LineStyle.Pattern, color: Color? = nil) -> TextParameters
- isActive:
A Boolean value that indicates whether strikethrough is added. The default value is
true. - pattern:
The pattern of the line.
- color:
The color of the strikethrough. If
colorisnil, the strikethrough uses the default foreground color.
Return Value
Text with a line through its center.