Using @ViewBuilder to create Views which support multiple children : <p>Some Views in SwiftUI, like VStack and HStack support having multiple views as children, like this:</p>

<pre class="lang-swift prettyprint-override"><code>VStack {
  Text("hello")
  Text("world")
}
</code></pre>

<p>From what I gather, they use <a href="https://developer.apple.com/documentation/swiftui/viewbuilder" rel="noreferrer">ViewBuilder</a> to make this possible as explained <a href="https://stackoverflow.com/questions/56434549/what-enables-swiftuis-dsl/56435128#56435128">here</a>. </p>

<p>How can we use @ViewBuilder for creating our own Views which support multiple children? For example, let's say that I want to create a <code>Layout</code> View which accepts arbitrary children -- something like this:</p>

<pre class="lang-swift prettyprint-override"><code>struct Layout : View {
  let content: Some View 

  var body : some View {
    VStack {
      Text("This is a layout")
      content()
    }
  } 
}
</code></pre>

<p>Any idea how to implement this pattern in SwiftUI? </p>
