title: How can I reproduce Picker's selection binding?
body: <p>I'm building a custom view and I'm trying to manipulate the active state of its children.</p>
  <p>I have this:</p>
  <pre><code>struct Menu&lt;Content&gt;: View where Content: View {
      
      @ViewBuilder var content: () -&gt; Content
      
      var body: some View {
          content()
      }
  }
  
  struct ScreenView: View {
      var body: some View {
          Menu {
              Text(&quot;Home&quot;)
              Text(&quot;Settings&quot;)
              Text(&quot;Profile&quot;)
          }
      }
  }
  </code></pre>
  <p>I would like to be able to pass a binding to the <code>Menu</code> view and based on that, to change the text color if the state is matching the actual text or id of the view. There is a Picker view example that does what I want to achieve. The Picker is managing the look and feel of the selected element. Am I wrong?</p>
  <pre><code>struct PickerViewExample: View {
      
      @State var selection: Int
      
      var body: some View {
          Picker(selection: $selection, label: Text(&quot;Picker&quot;), content: {
              Text(&quot;1&quot;).tag(1)
              Text(&quot;2&quot;).tag(2)
          })
      }
  }
  </code></pre>
  <p>I'd like to know if there is a way to <code>ForEach</code> somehow the <code>content</code> ViewBuilder property in order to manipulate subviews. I like the way Apple solved this using tags. Any alternative is welcome.</p>