Reading time: 1 min
This recipe shows how to present multiple sheets or full screen covers on a single view in SwiftUI. It saves you from having to have multiple modifiers with
isPresented, each holding their own view. Also, it automatically takes care of switching between different sheets / covers with just a sin...
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...