SongDetails

class SongDetails : PDFElement

A PDF song details element

  • The Song

    Declaration

    Swift

    let song: Song
  • Init the song details element

    Declaration

    Swift

    init(song: Song)

    Parameters

    song

    The Song

  • Draw the song details element

    Declaration

    Swift

    func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)

    Parameters

    rect

    The available rectangle

    calculationOnly

    Bool if only the Bounding Rect should be calculated

    pageRect

    The page size of the PDF document

  • Make a detail label

    Declaration

    Swift

    private func detailLabel(icon: String, label: String) -> NSAttributedString

    Parameters

    icon

    The icon as String

    label

    The label as String

    Return Value

    An NSAttributedString with icon, label and attributes