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

# init(_:id:content:)

Creates a utility window with a title and identifier.

## Declaration

```swift
nonisolated init(_ title: Text, id: String, @ContentBuilder content: () -> Content)
```

## Parameters

- `title`: The doc://com.apple.SwiftUI/documentation/SwiftUI/Text view to use in the utility window’s title bar. Provide a title that describes the purpose of the utility window.
- `id`: An unique string identifier that you can use to open the utility window.
- `content`: The view content to display in the utility window.

## Discussion

Discussion important: The system ignores any text styling that you apply to the Text view title, like bold or italics. However, you can use the formatting controls that the view offers, like for localization, dates, and numerical representations.
