title: How to customize the SwiftUI ViewBuilder
body: <p>There are some posts about SwiftUI Builder like <a href="https://stackoverflow.com/questions/57185101/how-do-i-make-a-reusable-swiftui-view-with-a-body-i-can-fill-in-like-list/57185300">this</a>. So that I can embed my content like:</p>
  
  <pre><code>struct Container&lt;Content&gt;: View where Content: View {
  
    var content: Content
  
    init(@ViewBuilder content: @escaping () -&gt; Content) {
      self.content = content()
    }
  
    var body: some View {
      return content
    }
  }
  
  struct ContentView: View {
    var body: some View {
      Container() {
        Text("Content 1").tag(0)
        Text("Content 2").tag(1)
      }
    }
  }
  </code></pre>
  
  <p>I'm wondering if I don't pass the ViewBuilder in init. Instead I'd like to do something like:</p>
  
  <pre><code>struct ContentView: View {
    var body: some View {
      Container().buildContent {
        Text("Content 1").tag(0)
        Text("Content 2").tag(1)
      }
    }
  }
  </code></pre>
  
  <p>The reason why I want to do this is because I want to mimic the <strong><code>TabView</code></strong>'s <strong><code>tabItem</code></strong>.</p>