init(_:)
Creates a progress view for showing indeterminate progress that generates its label from a string.
Declaration
nonisolated init<S>(_ title: S) where Label == Text, S : StringProtocolParameters
- title:
A string that describes the task in progress.
Discussion
This initializer creates a Text view on your behalf, and treats the title similar to init(verbatim:). See Text for more information about localizing strings. To initialize a progress view with a localized string key, use the corresponding initializer that takes a LocalizedStringKey instance.