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.

Say you want to do the following:

Screenshot%202021-07-21%20at%2021.02.45

T...

Continue Reading...

Reading time: 2 min

This recipe shows how to let your users draw with mouse/finger in SwiftUI. The result will look like this:

ezgif-1-69965200c46e

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...

Continue Reading...