title: How do I make a reusable SwiftUI View with a body I can fill in like List?
body: <p>I want to make a generic SwiftUI View that I can plug in and out of my controls. More than just passing it data though, I want to be able to pass in subviews like you would to a <code>List</code> like so:</p>
  
  <pre><code>List{
      Text("This works")
      Text("Hello World")
      Text("This works")
  }
  
  MyClass {
      Text("This works")
      Text("Hello World")
      Text("This works")
  }
  </code></pre>
  
  <p>Is this possible? And if so, how would I go about declaring this class?</p>