Initializer

init(_:)

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

Declaration 宣言

init(_ titleKey: LocalizedStringKey) where Label == Text
Available when Label conforms to View and CurrentValueLabel is EmptyView.

Parameters パラメータ

titleKey

The key for the progress view’s localized title that describes the task in progress.

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. このイニシャライザは、Textビューをあなたに代わって作成します、そしてローカライズされたキーをinit(_:tableName:bundle:comment:)に似たものと見なします。Textを文字列のローカライズについてのさらなる情報として見てください。 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