4
4
.
.
4
4
G
G
e
e
o
o
m
m
e
e
t
t
r
r
i
i
c
c
a
a
l
l
S
S
h
h
a
a
p
p
e
e
s
s
I
I
n
n
f
f
o
o
[
[
R
R
]
]
[
[
R
R
]
]
Following tutorials show how to draw different geometrical shapes.
Use Path to draw custom shapes.
S
S
t
t
r
r
o
o
k
k
e
e
S
S
t
t
y
y
l
l
e
e
For every geometrical shape you can specify custom Stroke Style.
Stroke Style
struct ContentView : View {
var body : some View {
Circle()
.stroke(Color.green, style: StrokeStyle (lineWidth: 7, lineCap: .square, dash: [15], dashPhase: 2))
.frame(width: 1000, height: 100)
}
}
Stroke Style