<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/TableForEachContent",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI19TableForEachContentV"
  },
  "title" : "TableForEachContent"
}
-->

# TableForEachContent

A type of table row content that creates table rows created by iterating
over a collection.

```
nonisolated struct TableForEachContent<Data> where Data : RandomAccessCollection, Data.Element : Identifiable
```

## Overview

You don’t use this type directly. The various `Table.init(_:,...)`
initializers create this type as the table’s `Rows` generic type.

To explicitly create dynamic collection-based rows, use [`ForEach`](/documentation/SwiftUI/ForEach) instead.

## Relationships

### Conforms To

[`TableRowContent`](/documentation/SwiftUI/TableRowContent)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)