init(LocalizedStringKey , image: String)
Creates a label with an icon image and a title generated from a localized string.
Available when
Title
is Text
and Icon
is Image
.Availability 有効性
Technology
init<S>(_ title: S, image name: String
) where S : StringProtocol
Title
is Text
and Icon
is Image
.title
A string used as the label’s title.
image
The name of the image resource to lookup.
init(LocalizedStringKey , image: String)
Title
is Text
and Icon
is Image
.