Initializer

init(_:)

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

Declaration 宣言

init<S>(_ title: S) where Label == Text, S : StringProtocol
Available when Label conforms to View and CurrentValueLabel is EmptyView.

Parameters パラメータ

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. Textを文字列のローカライズについてのさらなる情報として見てください。 To initialize a progress view with a localized string key, use the corresponding initializer that takes a LocalizedStringKey instance.

See Also 参照

Creating an Indeterminate Progress View