LineCap

public struct LineCap : RawRepresentable, Codable, Hashable

The display of line endings.

  • Declaration

    Swift

    public let rawValue: String
  • Declaration

    Swift

    public init(rawValue: String)
  • A cap with a squared-off end which is drawn to the exact endpoint of the line.

    Declaration

    Swift

    public static let butt: LineCap
  • A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line’s width and centered on the endpoint of the line.

    Declaration

    Swift

    public static let round: LineCap
  • A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line’s width.

    Declaration

    Swift

    public static let square: LineCap