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

# cornerRadius

The preferred corner radius, using a continuous corner curve, for the background and stroke.

## Declaration

```swift
var cornerRadius: CGFloat { get set }
```

## Discussion

Discussion This value doesn’t apply to the custom view. The default value is 0.0. If the view is too small to fit the requested radius, the system adjusts the corner curve and radius to fit.

## See Also

### Customizing the background

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