Initializer

init(_:image:)

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

Declaration 宣言

init<S>(_ title: S, image name: String) where S : StringProtocol
Available when Title is Text and Icon is Image.

Parameters パラメータ

title

A string used as the label’s title.

image

The name of the image resource to lookup.

See Also 参照

Creating a Label from Text and an Image