Contents

init(_:)

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

Declaration

@export(implementation) nonisolated init(_ titleResource: LocalizedStringResource) where Label == Text

Parameters

  • titleResource:

    Text resource for the progress view’s localized title that describes the task in progress.

Discussion

This initializer creates a Text view on your behalf. 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.