init(padding:softEdgeRadius:)
Creates a feathered glassBackground effect.
Declaration
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 isnil.
Return Value
A feathered background effect.