Releases: danielsaidi/PrintingKit
Releases · danielsaidi/PrintingKit
0.6.0
0.5.2
This version removes actor information from the PdfDataSource protocol.
0.5.1
This version enables support for strict concurrency.
0.5.0
This version removes previously deprecated code.
0.4.2
Thanks to Cihat Gündüz, this version makes PrintingKit work on visionOS.
0.4.1
0.4.0
This version makes view and image printing work on macOS.
✨ New Features
- Image and view printing now works on macOS.
🗑️ Deprecations
- All previously deprecated code has been removed.
Printer.canPrintImages
has been deprecated.Printer.canPrintViews
has been deprecated.
0.3.0
This version bumps to Swift 5.9 and replaces the Printer
protocol with a class to make the library less complex.
Due to this, the PrinterView
is no longer needed, and has been deprecated.
Plus, PrintingKit now builds on all Apple platforms, to let you import it without complicated, conditional adjustments.
💡 Behavior Changes
Printer
is now a single, open class on all supported platforms.PrintItem.string
is now a proper enum case.
🗑️ Deprecations
Pdf.PdfDataError
has been renamed toPdf.DataError
.PrinterError
has been renamed toPrinter.PrintError
.PrinterView
is deprecated. UsePrinter
directly.
0.2.0
This version adds PDF utilities and more print item types.
✨ New Features
Pdf
is a new namespace with PDF-specific types.PdfDataSource
is a new protocol that is implemented byNSAttributedString
.Printer
has newcanPrint
functions and properties.PrinterView
has newcanPrint
functions.PrintItem
has new.imageData
,.pdfData
,.attributedString
,.string
and.view
types.
🚨 Breaking changes
PrinterItem.image(at:)
has been renamed to.imageFile(at:)
.PrinterItem.pdf(at:)
has been renamed to.pdfFile(at:)
.
0.1.0
This is the first beta release.
✨ New Features
Printer
is a protocol that defines a printer.PrinterError
is a printer-specific error enum.PrinterView
is aSwiftUI
protocol that adds printing capabilities to SwiftUI views.PrintItem
is an enum that describes the currently supported item types.StandardPrinter
is a standard printer implementation.