---
title: "drop(color:radius:x:y:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/shadowstyle/drop(color:radius:x:y:)"
---

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

Creates a custom drop shadow style.

## Declaration

```swift
static func drop(color: Color = .init(.sRGBLinear, white: 0, opacity: 0.33), radius: CGFloat, x: CGFloat = 0, y: CGFloat = 0) -> ShadowStyle
```

## Parameters

- `color`: The shadow’s color.
- `radius`: The shadow’s size.
- `x`: A horizontal offset you use to position the shadow relative to this view.
- `y`: A vertical offset you use to position the shadow relative to this view.

## Return Value

Return Value A new shadow style.

## Discussion

Discussion Drop shadows draw behind the source content by blurring, tinting and offsetting its per-pixel alpha values.

## See Also

### Getting shadow styles

- [inner(color:radius:x:y:)](swiftui/shadowstyle/inner(color:radius:x:y:).md)
