PDFLineStyle

public struct PDFLineStyle : Hashable

Structure defining how a line should be drawn into graphics context

  • Type of the line

    Declaration

    Swift

    public var type: PDFLineType
  • Color of the line

    Declaration

    Swift

    public var color: Color
  • Width of the line

    Declaration

    Swift

    public var width: CGFloat
  • Defines the width of this radius (Only for rect draw, not for line)

    Declaration

    Swift

    public var radius: CGFloat?
  • Initialize a table line style

    Declaration

    Swift

    public init(type: PDFLineType = .full, color: Color = .black, width: CGFloat = 0.25, radius: CGFloat? = nil)

    Parameters

    type

    See type

    color

    See color

    width

    See width

    radius

    See radius

Equatable

  • nodoc

    Declaration

    Swift

    public static func == (lhs: PDFLineStyle, rhs: PDFLineStyle) -> Bool

Hashable

  • nodoc

    Declaration

    Swift

    public func hash(into hasher: inout Hasher)

Defaults

  • Shorthand method for creating an invisible line

    Declaration

    Swift

    static var none: PDFLineStyle { get }