image
The image displayed in the view’s background.
Declaration
var image: UIImage? { get set }Discussion
This property contains the image displayed in the view’s background. If this property is set to nil, the view displays no background image.
Changing the image in this property doesn’t change the size of the view automatically. You can use the background configuration’s imageContentMode to specify how to lay out the image when its size differs from the size in the view’s bounds.