Divider
public class Divider: PDFElement
A PDF divider element
-
The
direction
of 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
direction
The direction of the
divider
-
Draw the divider
Declaration
Swift
func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)
Parameters
rect
The available rectangle
calculationOnly
Bool if only the size should be calculated
pageRect
The page size of the PDF document