init(CGImage, scale: CGFloat, orientation: Image.Orientation, label: Text)
Creates a labeled image based on a Core Graphics image instance, usable as content for controls.
Availability 有効性
Technology
name
The name of the image resource to lookup
bundle
The bundle to search for the image resource. If nil
, SwiftUI uses the main Bundle
. Defaults to nil
.
label
The label associated with the image. 画像と結びつけられたラベル。 SwiftUI uses the label for accessibility.
init(CGImage, scale: CGFloat, orientation: Image.Orientation, label: Text)