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

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

Creates a custom inner shadow style.

## Declaration

```swift
static func inner(color: Color = .init(.sRGBLinear, white: 0, opacity: 0.55), 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 Inner shadows draw on top of the source content by blurring, tinting, inverting and offsetting its per-pixel alpha values.

## See Also

### Getting shadow styles

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