Reading time: 3 min

This recipe shows how to style a SwiftUI Form. Forms are a great way to quickly compose a UI for collecting data, such as an enrolment form or a settings panel, but fully styling them can be a bit a tricky.

The end result will look like this:

row

Starting position

OK, let's start with a an exe...

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

Reading time: 1 min

This recipe shows how to display a grouped list in SwiftUI. A grouped list contains sections, comprised of zero or more rows, plus an optional header and footer.

The end result will look like this:

grouped-insets

OK, so the formula is quite simple:

  1. Pass Sections as your List's items.
  2. Specify...

Continue Reading...

Reading time: 2 min

This recipe shows how to style SwiftUI DatePicker by setting its background and foreground / text color. There's no good, standard way of doing this, but a few tricks can get you there for the most part.

Here are a few examples of what you can do:

Graphical dialog Wheel dialog
Compact dialog Custom buttons

The images above show...

Continue Reading...

Reading time: 2 min

This recipe shows how to implement a custom separator/divider in any SwiftUI list feeded by a ForEach - like VStack, LazyVStack, HStack, LazyHStack, etc. The end result looks like this:

ezgif-2-c66ddfeec0a2

The gist of the recipe is to implement a custom ForEach that inserts separators between items. It...

Continue Reading...