title: How to iterate through an array of dictionaries with SwiftUI?
body: <p>I am trying to iterate though a array of through dictionaries in SwiftUI but I am getting the following error:</p>
  
  <p>Cannot convert value of type 'PostViewModel' to expected argument type 'Range'</p>
  
  <pre><code>ForEach(self.posts) { post in
      dump(post)
  }
  </code></pre>
  
  <p>What I want is to create run a loop that creates a list for each group and then populate each list with the post data.</p>
  
  <p>Can someone help me out?</p>
  
  <hr>
  
  <p>The data looks like this:</p>
  
  <pre><code>[
    "group1": [
      Tabs.Post(
        data: Tabs.Data(
          title: "Nulla vitae elit libero, a pharetra augue",
          id: "g4qq0o"
        )
      ),
      Tabs.Post(
        data: Tabs.Data(
          title: "Aenean lacinia bibendum nulla sed consectetur",
          id: "g76f3c"
        )
      ),
      Tabs.Post(
        data: Tabs.Data(
          title: "Fusce dapibus, tellus ac cursus commodo",
          id: "g7ftg9"
        )
      )
    ], 
    "group2": [
      Tabs.Post(
        data: Tabs.Data(
          title: "Nulla vitae elit libero, a pharetra augue",
          id: "498wi5"
        )
      ),
      Tabs.Post(
        data: Tabs.Data(
          title: "Aenean lacinia bibendum nulla sed consectetur",
          id: "g6x11c"
        )
      ),
      Tabs.Post(
        data: Tabs.Data(
          title: "Fusce dapibus, tellus ac cursus commodo",
          id: "g64l3b"
        )
      )
    ]
  ]
  </code></pre>