---
title: clear()
framework: uikit
role: symbol
role_heading: Type Method
path: uikit/uibackgroundconfiguration-swift.struct/clear()
---

# clear()

Creates an empty background configuration with a transparent background and no default styling.

## Declaration

```swift
static func clear() -> UIBackgroundConfiguration
```

## Return Value

Return Value An empty background configuration with a transparent background and no default styling.

## Discussion

Discussion Create this configuration for the background of a view. It configures the view with a transparent background and no default styling.
