title: How to return different views based on a certain tag value?
body: <p>I am trying to return a view within a <code>.sheet</code> modifier, from an array of view objects. I am having trouble getting the SwiftUI logic for setting tags for different views. This is probably something very simple but I am unable the figure it out.</p>
  
  <p>I have already tried an if statement, and a function with switch/case, but I am unable to return a specific view. I believe since I've added a <code>tag</code> manually to the object, once the condition is met, it returns only a single view (<code>Destination View1</code>) in all the buttons.</p>
  
  <p>This is my <code>ForEach</code> loop for an array of <code>covers</code>:</p>
  
  <pre><code>var covers = coverData
  
  ForEach(covers) { item in
      Button(action: { self.isPresented.toggle() }) {
          CoverAttributes(title: item.title,
                  alternativeTitle: alternativeTitle,
                  tapForMore: item.tapForMore,
                  color: item.color,
                  shadowColor: item.shadowColor)
              .sheet(isPresented: self.$isPresented, content: { Text("Destination View1") })
  
      }
  }
  </code></pre>
  
  <p>The array is structured like this:</p>
  
  <pre><code>let coverData = [
      Cover(title: "Title1",
                alternativeTitle: "Alternative title",
                tapForMore: "Tap to see",
                color: Color("background3"),
                shadowColor: Color("backgroundShadow3"),
                tag: 1)
  
  // Three more items with tags 2, 3, 4)
  
  ]
  </code></pre>
  
  <p>I want to be able to return the remaining <code>Destination View2, 3, and 4</code> for the other buttons as well.</p>