inner(color:radius:x:y:)
Creates a custom inner shadow style.
Declaration
static func inner(color: Color = .init(.sRGBLinear, white: 0, opacity: 0.55), radius: CGFloat, x: CGFloat = 0, y: CGFloat = 0) -> ShadowStyleParameters
- 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.