<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ShadowStyle/inner(color:radius:x:y:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI11ShadowStyleV5inner5color6radius1x1yAcA5ColorV_14CoreFoundation7CGFloatVA2MtFZ"
  },
  "title" : "inner(color:radius:x:y:)"
}
-->

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

Creates a custom inner shadow style.

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

A new shadow style.

## Discussion

Inner shadows draw on top of the source content by blurring,
tinting, inverting and offsetting its per-pixel alpha values.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)