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

# customView

A custom view for the background.

## Declaration

```swift
var customView: UIView? { get set }
```

## Discussion

Discussion The custom view must have translatesAutoresizingMaskIntoConstraints set to true, but it can use Auto Layout constraints internally for layout of its subviews.

## See Also

### Customizing the background

- [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)
- [image](uikit/uibackgroundconfiguration-swift.struct/image.md)
