Reading time: 7 min
This recipe shows how to add custom row swipe actions to a SwiftUI List, supporting multiple custom buttons on either side, as well as full swipe functionality. The end result looks like this:
The solution depends on which SwiftUI version you have to support:
- SwiftUI 3 (iOS 15, macOS 12...
Reading time: 2 min
This recipe shows how to show multiple
ActionSheets or custom dialogs, without tying them to multiple views. The end result looks like this:
The usual way of using multiple views has its shortcomings, as it:
- Forces you to have at least as many views as distinct modals you wish...