title: SwiftUI Edit Button not working after animation
body: <p>After animating from a group conditional view, the edit button on my list doesn't work. It works fine if there's no animation, but I'm not sure why an animation would cause the edit button to not work?</p>
  <pre><code>struct Overview: View {
      @State var test = true
      var body: some View {
          Group {
              if test {
                  Button(action: {
                      test = false
                  }) {
                      Text(&quot;Button&quot;)
                  }
              } else {
                  NavigationView {
                      SimpleList()
                          .toolbar {
                              ToolbarItem(placement: .navigationBarTrailing) {
                                  EditButton()
                              }
                          }
                  }
                  .navigationViewStyle(StackNavigationViewStyle())
              }
          }
          .animation(.easeOut, value: test)
      }
  }
  
  struct SimpleList: View {
      
      let test = [&quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;]
      var body: some View {
          List {
              ForEach(test, id: \.self) { t in
                  Text(t)
              }
              .onDelete(perform: deleteRow)
          }
      }
      
      func deleteRow(_ :IndexSet) {
          
      }
  }
  </code></pre>
  <p>Without animation:
  <a href="https://i.stack.imgur.com/wOFxX.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wOFxX.gif" alt="Without animation" /></a></p>
  <p>With animation:
  <a href="https://i.stack.imgur.com/eeBhf.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eeBhf.gif" alt="With animation" /></a></p>