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 single binding.
Reading time: 2 min
This recipe shows how to show multiple Alert
s, ActionSheet
s or custom dialogs, without tying them to multiple views.