DropView Documentation

Structure Shadow

public struct Shadow  

A struct defining shadow-like properties for drop views.

Initializers

init(color:​radius:​x:​y:​)

public init(
        color: Color = .black,
        radius: CGFloat,
        x: CGFloat = 0,
        y: CGFloat = 0
    )  

Init.

Parameters

color Color

The shadow color. Defaults to .black.

radius CGFloat

The shadow radius.

x CGFloat

The shadow x offset. Defaults to 0.

y CGFloat

The shadow y offset. Defaults to 0.