Here is the code I am using:
struct ContentView: View { @State var showingAlert: Bool = false var body: some View { VStack { Button("Show Alert") { showingAlert = true } } .alert(isPresented: $showingAlert) { Alert(title: Text("Important message"), message: Text("Wear sunscreen"), dismissButton: .default(Text("Got it!"))) } } } I tried tapping the Show Alert button so many times in the iPad Pro (11-inch) (3rd Generation) simulator but nothing happens. What's wrong in the code above? or is it a bug in the latest simulator? (I am using Xcode 12.5).