Contents

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 Up.

Discussion

SwiftUI ignores this image for accessibility purposes.

See Also

Creating an image for decorative use