Initializer

init(decorative:scale:orientation:)

Creates an unlabeled, decorative image based on a Core Graphics image instance.

Declaration 宣言

init(decorative cgImage: CGImage, scale: CGFloat, orientation: Image.Orientation = .up)

Parameters パラメータ

cgImage

The base graphical image.

scale

The scale factor for the image, with a value like 1.0, 2.0, or 3.0.

orientation

The orientation of the image. The default is Image.Orientation.up.

Discussion 議論

SwiftUI ignores this image for accessibility purposes.

See Also 参照

Creating an Image for Decorative Use