stroke and strokeBorder

#stroke #strokeborder #border

Overview

.stroke

.stroke(.blue, lineWidth: 10)

...

.stroke(.blue, style: StrokeStyle(lineWidth: 10, lineCap: .round, lineJoin: .round))

.strokeBorder

strokes the edges in white
.strokeBorder(.white, linewidth: 3)

.stroke vs .strokeBorder

Stroke follows a line to draw a shape from the middle of the pen. It does not take inti account the edges of the screen or given space. But StrokeBorder takes into account the screen or given space and then draws the shape.

Sources

Videos

Articles / Documents

Last updated