title: SwiftUI - nested list
body: <p>I'm trying to create a nested hierarchical list, so that for each task I can have subtasks like in iOS reminders app:</p>
  
  <p><a href="https://i.stack.imgur.com/Xv7l9.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/Xv7l9.jpg" alt="enter image description here"></a></p>
  
  <p>First attempt was to embed another list inside a list cell.</p>
  
  <pre><code>import SwiftUI
  
  struct SwiftUIView: View {
      var body: some View {
  
          List {
              List {
                Text("Hello, World!")
  
              }
  
          }
      }
  }
  
  struct SwiftUIView_Previews: PreviewProvider {
      static var previews: some View {
          SwiftUIView()
      }
  
  </code></pre>
  
  <p>But, didn't work out...</p>
  
  <p>Anyone can help?</p>
  
  <p>cheers</p>