---
title: image
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibackgroundconfiguration-swift.struct/image
---

# image

The image displayed in the view’s background.

## Declaration

```swift
var image: UIImage? { get set }
```

## Discussion

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.

## See Also

### Customizing the background

- [customView](uikit/uibackgroundconfiguration-swift.struct/customview.md)
- [cornerRadius](uikit/uibackgroundconfiguration-swift.struct/cornerradius.md)
- [backgroundInsets](uikit/uibackgroundconfiguration-swift.struct/backgroundinsets.md)
- [edgesAddingLayoutMarginsToBackgroundInsets](uikit/uibackgroundconfiguration-swift.struct/edgesaddinglayoutmarginstobackgroundinsets.md)
- [backgroundColor](uikit/uibackgroundconfiguration-swift.struct/backgroundcolor.md)
- [backgroundColorTransformer](uikit/uibackgroundconfiguration-swift.struct/backgroundcolortransformer.md)
- [resolvedBackgroundColor(for:)](uikit/uibackgroundconfiguration-swift.struct/resolvedbackgroundcolor(for:).md)
- [visualEffect](uikit/uibackgroundconfiguration-swift.struct/visualeffect.md)
- [shadowProperties](uikit/uibackgroundconfiguration-swift.struct/shadowproperties.md)
- [UIShadowProperties](uikit/uishadowproperties-swift.struct.md)
- [strokeColor](uikit/uibackgroundconfiguration-swift.struct/strokecolor.md)
- [strokeColorTransformer](uikit/uibackgroundconfiguration-swift.struct/strokecolortransformer.md)
- [resolvedStrokeColor(for:)](uikit/uibackgroundconfiguration-swift.struct/resolvedstrokecolor(for:).md)
- [strokeWidth](uikit/uibackgroundconfiguration-swift.struct/strokewidth.md)
- [strokeOutset](uikit/uibackgroundconfiguration-swift.struct/strokeoutset.md)
