---
title: TableForEachContent
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/tableforeachcontent
---

# TableForEachContent

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

## Declaration

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

## Overview

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 instead.

## Relationships

### Conforms To

- [TableRowContent](swiftui/tablerowcontent.md)

## See Also

### Creating rows

- [TableRow](swiftui/tablerow.md)
- [TableRowContent](swiftui/tablerowcontent.md)
- [TableHeaderRowContent](swiftui/tableheaderrowcontent.md)
- [TupleTableRowContent](swiftui/tupletablerowcontent.md)
- [EmptyTableRowContent](swiftui/emptytablerowcontent.md)
- [DynamicTableRowContent](swiftui/dynamictablerowcontent.md)
- [TableRowBuilder](swiftui/tablerowbuilder.md)
