Initializer

init(imageLiteralResourceName:)

Returns the image object associated with the specified resource.

Declaration

required convenience init(imageLiteralResourceName name: String)

Parameters

name

The name of the file or image asset.

Return Value

The image object.

See Also

Loading and Caching Images

init?(named: String, in: Bundle?, compatibleWith: UITraitCollection?)

Returns the named image that is also compatible with the specified trait collection.

init?(named: String)

Returns the image object associated with the specified filename.