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

# init(content:)

Creates a hosting configuration with the given contents.

## Declaration

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

## Parameters

- `content`: The contents of the SwiftUI hierarchy to be shown inside the cell.
