Contents

feathered(padding:softEdgeRadius:)

A feathered background effect with custom padding and soft edge radius.

Declaration

static func feathered(padding length: CGFloat, softEdgeRadius: CGFloat? = nil) -> FeatheredGlassBackgroundEffect

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.