---
title: "init(_:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/progressview/init(_:)-6k5se"
---

# init(_:)

Creates a progress view for showing indeterminate progress that generates its label from a localized string.

## Declaration

```swift
nonisolated init(_ titleKey: LocalizedStringKey) where Label == Text
```

## Parameters

- `titleKey`: The key for the progress view’s localized title that describes the task in progress.

## Discussion

Discussion This initializer creates a Text view on your behalf, and treats the localized key similar to init(_:tableName:bundle:comment:). See Text for more information about localizing strings. To initialize a indeterminate progress view with a string variable, use the corresponding initializer that takes a StringProtocol instance.

## See Also

### Creating an indeterminate progress view

- [init()](swiftui/progressview/init().md)
- [init(label:)](swiftui/progressview/init(label:).md)
- [init(_:)](swiftui/progressview/init(_:)-3q5nf.md)
