init(_:orientation:)
Creates an attachment from a Core Graphics image.
Declaration
init(_ cgImage: CGImage, orientation: CGImagePropertyOrientation? = nil)Parameters
- cgImage:
The image to attach.
- orientation:
The orientation to apply to the image. Pass
nilto use the image’s natural orientation.