---
title: "shadow(color:radius:x:y:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/matchedtransitionsourceconfiguration/shadow(color:radius:x:y:)"
---

# shadow(color:radius:x:y:)

Applies the specified shadow effect to the matched transition source.

## Declaration

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