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