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

# init(content:)

Creates a list with the given content.

## Declaration

```swift
nonisolated init(@ContentBuilder content: () -> Content)
```

## Parameters

- `content`: The content of the list.

## See Also

### Creating a list from a set of views

- [init(selection:content:)](swiftui/list/init(selection:content:).md)
