---
title: "init(padding:softEdgeRadius:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/featheredglassbackgroundeffect/init(padding:softedgeradius:)"
---

# init(padding:softEdgeRadius:)

Creates a feathered glass background effect.

## Declaration

```swift
init(padding length: CGFloat, softEdgeRadius: CGFloat? = nil)
```

## Parameters

- `length`: An amount, given in points, to pad all edges when the style is rendering. However, it does not affect the layout size, which is based on the content size. When it is less than the effect’s blur size, the blur will be clipped.
- `softEdgeRadius`: When a blur is clipped, the radial size of the blur’s edge. If you set the value to nil, SwiftUI uses a default amount. The default value of this parameter is nil.

## Return Value

Return Value A feathered background effect.
