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

Continue Reading...

Reading time: 2 min

This recipe shows how to show multiple Alerts, ActionSheets or custom dialogs, without tying them to multiple views. The end result looks like this:

ezgif-3-31b97e7c1ad8

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

Continue Reading...