---
title: "init(_:content:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/tablecolumnforeach/init(_:content:)"
---

# init(_:content:)

Creates an instance that uniquely identifies and creates table columns across updates based on the identity of the underlying data.

## Declaration

```swift
nonisolated init(_ data: Data, @TableColumnBuilder<TableColumnForEach<Data, ID, RowValue, Sort, Content>.TableRowValue, TableColumnForEach<Data, ID, RowValue, Sort, Content>.TableColumnSortComparator> content: @escaping (Data.Element) -> Content) where ID == Data.Element.ID, Data.Element : Identifiable
```

## Parameters

- `data`: The identified data that the doc://com.apple.SwiftUI/documentation/SwiftUI/TableColumnForEach instance uses to create table columns dynamically.
- `content`: The table column builder that creates columns dynamically for each element.

## See Also

### Creating the collection

- [init(_:id:content:)](swiftui/tablecolumnforeach/init(_:id:content:).md)
