Initializer

init(_:systemImage:)

Creates a label with a system icon image and a title generated from a localized string.

Declaration 宣言

init(_ titleKey: LocalizedStringKey, systemImage name: String)
Available when Title is Text and Icon is Image.

Parameters パラメータ

titleKey

A title generated from a localized string.

systemImage

The name of the image resource to lookup.

See Also 参照

Creating a Label from Text and an SF Symbol