Divider
class Divider: PDFElement
A PDF divider element
-
The
directionof the dividerDeclaration
Swift
let direction: Direction -
The line with of the divider
Declaration
Swift
let lineWidth: CGFloat = 0.6 -
The color of the divider
Declaration
Swift
let strokeColor = NSColor.lightGray.cgColor -
Init the divider element
Declaration
Swift
init(direction: Direction = .vertical)Parameters
directionThe direction of the
divider -
Draw the divider
Declaration
Swift
func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)Parameters
rectThe available rectangle
calculationOnlyBool if only the size should be calculated
pageRectThe page size of the PDF document
View on GitHub