Contents

init(contentsOf:)

Initializes an image object by reading an image from a URL.

Declaration

init?(contentsOf url: URL)

Parameters

  • url:

    The location of the image file to read.

Return Value

The initialized image object, or nil if the object could not be initialized.

See Also

Creating an Image