<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/FeatheredGlassBackgroundEffect/init(padding:softEdgeRadius:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI30FeatheredGlassBackgroundEffectV7padding14softEdgeRadiusAC14CoreFoundation7CGFloatV_AHSgtcfc"
  },
  "title" : "init(padding:softEdgeRadius:)"
}
-->

# init(padding:softEdgeRadius:)

Creates a feathered glassBackground effect.

```
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

A feathered background effect.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)