PDFLineStyle
public struct PDFLineStyle : PDFJSONSerializable
This struct defines how a line or border of a table is drawn.
-
Defines the type of this line
Declaration
Swift
public var type: PDFLineType
-
Defines the color of this line
Declaration
Swift
public var color: UIColor
-
Defines the width of this 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: UIColor = .black, width: CGFloat = 0.25, radius: CGFloat? = nil)
Parameters
type
of Line
color
of Line
width
of Line
radius
of border
-
Shorthand method for creating an invisible line
Declaration
Swift
public static var none: PDFLineStyle { get }
-
Declaration
Swift
public static func == (lhs: PDFLineStyle, rhs: PDFLineStyle) -> Bool