22
Jul
2021
Stroke and fill a Shape in SwiftUI
Reading time: 1 min
For whatever reason, stroking (i.e drawing a border) and filling a SwiftUI Shape
at the same time is difficult and unintuitive. Shape
has methods for both, stroke
and fill
, respectively, but they both return some View
, meaning you can't chain them.