init(pattern: Text.LineStyle .Pattern, color: Color?)
Creates a line style.
struct Pattern
The pattern, that the line has.
Text.LineStyle
from NSUnderlineStyle
.Availability 有効性
Technology
init?(nsUnderlineStyle: NSUnderlineStyle
)
A new Text
or nil
when ns
contains styles not supported by Text
.
nsUnderlineStyle
A value of NSUnderline
to wrap with Text
.
Note 注意
Use this initializer only if you need to convert an existing NSUnderline
to a SwiftUI Text
. Otherwise, create a Text
using an initializer like init(pattern:
.
init(pattern: Text.LineStyle .Pattern, color: Color?)
struct Pattern