Done in https://github.com/badbundle/vault-app/pull/714 (merged as 3b497c13). The Mac makes the same PDF backup and QR codes as the iPhone.
- One layout, two renderers.
CoreGraphicsPDFRendererdoes on the Mac whatUIGraphicsPDFRendererdoes on iOS, so VaultExport's drawing code serves both. iOS keeps UIKit (PlatformPDFRendererisUIGraphicsPDFRendererthere), so its PDFs and snapshots are byte for byte as they were. - QR codes are identical: the Mac draws them at 3×, nearest neighbour, as the iPhone does, so each is the same 214-pixel image, and the Mac's QR snapshots match the iPhone's pixel for pixel.
- Restores both ways:
pdf-made-on-mac.pdfjoins the backup corpus and every iOS run restores it; the iOS-made PDFs restore on the Mac in every Mac run. Every corpus PDF also restores from its QR codes alone, read from the PDF's images as scanning paper would. - "No iOS test changed": none checks anything different. A few now spell a UIKit type with its alias (the same type on iOS), and one goes through TestHelpers'
assertSnapshot. The iOS snapshot files are untouched. - One visible difference: the Mac's text has slightly taller lines, so its QR codes start a few points lower on the page. Nothing a restore reads differs.