Return Value 戻り値
A stroked shape. 線をつけられた形状。
Availability 有効性
Technology
func stroke<S>(_ content: S, lineWidth: CGFloat
= 1) -> some View
where S : ShapeStyle
A stroked shape. 線をつけられた形状。
content
The color or gradient with which to stroke this shape. それでこの形状に線をつける色または勾配。
lineWidth
The width of the stroke that outlines this shape.
The following example draws a circle with a purple stroke:
Circle().stroke(Color.purple, lineWidth: 5)