One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

Text.LineStyle

struct · iOS 15.0+ · SDK 27.1

struct LineStyle

Description of the style used to draw the line for `StrikethroughStyleAttribute` and `UnderlineStyleAttribute`. Use this type to specify `underlineStyle` and `strikethroughStyle` SwiftUI attributes of an `AttributedString`.

Members (2)

get · iOS 15.0+

single

TypeScript
static get single(): Text_LineStyle
Swift declaration
static let single: Text.LineStyle

Draw a single solid line.

init · iOS 15.0+

init

TypeScript
static init(pattern?: Text_LineStyle_Pattern, color?: (Color) | null): Text_LineStyle
Swift declaration
init(pattern: Text.LineStyle.Pattern = .solid, color: Color? = nil)

Creates a line style. - Parameters: - pattern: The pattern of the line. - color: The color of the line. If not provided, the foreground color of text is used.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →