SongDetails
class SongDetails: PDFElement
A PDF song details element
-
Draw the song details element
Declaration
Swift
func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)Parameters
rectThe available rectangle
calculationOnlyBool if only the Bounding Rect should be calculated
pageRectThe page size of the PDF document
-
Make a detail label
Declaration
Swift
private func detailLabel(icon: String, label: String) -> NSAttributedStringParameters
iconThe icon as
StringlabelThe label as
StringReturn Value
An
NSAttributedStringwith icon, label and attributes
View on GitHub