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,
fill, respectively, but they both return
some View, meaning you can't chain them.
Say you want to do the following:
Reading time: 2 min
This recipe shows how to let your users draw with mouse/finger in SwiftUI. The result will look like this:
This recipe is a part of our Road to DigitalSignatureView series, which explores various components vital to functioning of our SwiftUIDigitalSignature component.
You can find...