Shadow

public struct Shadow

Defines a structure representing the border of a View.

  • Returns the corner radius of the border. Animatable.

    Assigning an new value to this will change the corner radius of the shadow.

    Declaration

    Swift

    public var radius: Double
  • Returns the color of the shadow. Animatable.

    Assigning an new value to this will change the color of the shadow.

    Declaration

    Swift

    public var color: Color?
  • Returns the offset of the shadow. Animatable.

    Assigning an new value to this will change the offset of the shadow.

    Declaration

    Swift

    public var offset: Size
  • Returns the opacity of the shadow. Animatable.

    Assigning an new value to this will change the opacity of the shadow.

    Declaration

    Swift

    public var opacity: Double
  • Returns the outline of the shadow. Animatable.

    Assigning an new value to this will change the path of the shadow.

    Declaration

    Swift

    public var path: Path?
  • Initializes a new C4Shadow struct with the following defaults:

    radius = 5.0 color = black offset = (5,5) opacity = 0.0

    Declaration

    Swift

    public init()