Reverse printing

Found a problem with the printing where the paper’s y axis starts at 0 on the bottom of the page, not the top. So I altered this bit of drawRect: so that the first employee was given a number of 1 (not 0) and was printed at the top of the paper (not bottom)

// Draw index and name nameRect.origin.y = pageRect.maxY - (CGFloat(indexOnPage) + 1) * lineHeight let employeeName = (employee.name ?? "") let indexAndName = "\(indexInEmployees + 1) \(employeeName)" indexAndName.drawInRect(nameRect, withAttributes: textAttributes)

Hmm. The solution we have works fine without this change. Is it possible that you skipped implementing the ‘flipped’ computed property?