Border

public struct Border

Defines a structure representing the border of a View.

  • Returns the color of the border.

    Declaration

    Swift

    public var color: Color?
  • Returns the corner radius of the border.

    Declaration

    Swift

    public var radius: Double
  • Returns the width of the border.

    Declaration

    Swift

    public var width: Double
  • Initializes a new border struct with the following defaults:

    radius = 0.0 color = black width = 0.0

    Declaration

    Swift

    public init()