init(cgImage:)
Creates an Artworkrepresentation from a CGImage instance.
Declaration
init(cgImage: CGImage) throwsParameters
- cgImage:
The
CGImagethat represents the artwork.
Discussion
If the provided image uses an unsupported format, this initializer returns nil.