I\'ve got a view and I need it to present either an alert or a full-screen modal view dependent on the state.
Here\'s my code:
struct MainView : View {