shadow(color:radius:x:y:)
Applies the specified shadow effect to the matched transition source.
Declaration
func shadow(color: Color = Color(.sRGBLinear, white: 0, opacity: 0.33), radius: CGFloat, x: CGFloat = 0, y: CGFloat = 0) -> some MatchedTransitionSourceConfiguration
Parameters
- color:
The shadow’s color.
- radius:
A measure of how much to blur the shadow. Larger values result in more blur.
- x:
An amount to offset the shadow horizontally from the view.
- y:
An amount to offset the shadow vertically from the view.