Initializer

init(_:image:)

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

Declaration 宣言

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

Parameters パラメータ

titleKey

A title generated from a localized string.

image

The name of the image resource to lookup.

See Also 参照

Creating a Label from Text and an Image