title: Two ForEach in SwiftUI
body: <p>I would like to make two loop in SwiftUI. For example :</p>
  
  <pre><code>ForEach (chapterData) { chapter in
  
    ForEach (chapter.line) { line in 
  
       Text("\(line.text)")
    }
  }
  </code></pre>
  
  <p>the chapterData is an table of Chapter ( [Chapter] ) : </p>
  
  <pre><code>struct Chapter: Codable, Identifiable { 
    let id:Int
    let line:[Line] 
  } 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>struct Line: Codable, Identifiable {
    let id: Int
    let text: String 
  } 
  </code></pre>
  
  <p>I would like to get the line.text of all chapters in chapterData</p>
  
  <p>but I can't compile this code and I think it's not possible to do two ForEach Loops in this way.</p>
  
  <p>Can someone help me?</p>