Creates a custom drop shadow style.
Drop shadows draw behind the source content by blurring,
tinting and offsetting its per-pixel alpha values.
- 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.
- Returns: A new shadow style.
Creates a custom inner shadow style.
Inner shadows draw on top of the source content by blurring,
tinting, inverting and offsetting its per-pixel alpha values.
- 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.
- Returns: A new shadow style.