title: How can I have two alerts on one view in SwiftUI?
body: <p>I want to have two unique alerts attached to the same <code>Button</code> view. When I use the code below, only the alert on the bottom works.</p>
  
  <p>I'm using the official release of Xcode 11 on macOS Catalina.</p>
  
  <pre class="lang-swift prettyprint-override"><code>@State private var showFirstAlert = false
  @State private var showSecondAlert = false
  
  Button(action: {
      if Bool.random() {
          showFirstAlert = true
      } else {
          showSecondAlert = true
      }
  }) {
      Text("Show random alert")
  }
  .alert(isPresented: $showFirstAlert) {
      // This alert never shows
      Alert(title: Text("First Alert"), message: Text("This is the first alert"))
  }
  .alert(isPresented: $showSecondAlert) {
      // This alert does show
      Alert(title: Text("Second Alert"), message: Text("This is the second alert"))
  }
  </code></pre>
  
  <p>I expect first alert to show when I set <code>showFirstAlert</code> to true and I expect the second alert to show when I set <code>showSecondAlert</code> to true. Only the second alert shows when its state is true but the first one does nothing.</p>