Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
import SwiftUI
struct ContentView: View {
var body: some View {
Canvas { context,size in
for i in stride(from:0.0,to:size.width,by:8){
context.stroke(Path{p in p.move(to:CGPoint(x:i,y:0));p.addLine(to:CGPoint(x:i+20,y:size.height))},with:.color(.black))
}
}
}
}Coding works best on desktop or with an external keyboard.