init(imageURL:orientation:)
Creates an attachment from a file URL pointing to an image.
Declaration
init(imageURL: URL, orientation: CGImagePropertyOrientation? = nil)Parameters
- imageURL:
A URL to the image file to attach.
- orientation:
The orientation to apply to the image. Pass
nilto use the image’s natural orientation.