Shake Gesture in SwiftUI
Reading time: 1 min
This recipe shows how to implement shake gesture detection in SwiftUI. The result looks like this (you'll have to image the phone being shaken :)):
This component is available as a Swift Package in this repo.
The recipe is as follows:
- Override
UIWindow
'smotionEnded
formotion...
Styling SwiftUI Form
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:
Starting position
OK, let's start with a an exe...
Freeform Drawing in SwiftUI
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...
Grouped List in SwiftUI
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:
OK, so the formula is quite simple:
- Pass
Section
s as yourList
's items. - Specify...
Styling SwiftUI DatePicker
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:
![]() |
![]() |
![]() |
![]() |
The images above show...