Shadow

public struct Shadow

Represents a Shadow that can be attached to any Layer

  • Creates a Shadow that can be attached to any Layer

    Declaration

    Swift

    public init(radius: CGFloat, offset: CGPoint, color: Color)

    Parameters

    radius

    Blur radius of the shadow

    offset

    Shadow’s offset from its layer’s origin

    color

    Color of the shadow