Instance Method
addBackgroundImage(with:)addBackgroundImageWithURL:addBackgroundImageWithURL_
Adds an image from a file URL.
Declaration
func addBackgroundImage(with URL: URL)Declaration
- (void) addBackgroundImageWithURL:(NSURL *) URL;Declaration
addBackgroundImageWithURL_(URL: NSURL)Parameters
URLThe image file URL.
Discussion
The image becomes the layer’s background image. On a full-color layer, it is added as a shape instead.
See Also
Background Image
A reference image attached directly to a layer.
A reference image attached directly to the layer.
Whether a background image is attached directly to the layer.