Skip to content

Releases: danielsaidi/PrintingKit

0.6.0

04 Oct 21:13
Compare
Choose a tag to compare

This version makes PrintingKit use Swift 6.

0.5.2

29 May 05:47
Compare
Choose a tag to compare

This version removes actor information from the PdfDataSource protocol.

0.5.1

28 May 21:09
Compare
Choose a tag to compare

This version enables support for strict concurrency.

0.5.0

12 Mar 14:02
Compare
Choose a tag to compare

This version removes previously deprecated code.

0.4.2

31 Jan 23:50
Compare
Choose a tag to compare

Thanks to Cihat Gündüz, this version makes PrintingKit work on visionOS.

0.4.1

19 Dec 09:12
Compare
Choose a tag to compare

Thanks to Jehuut, this version makes the package build in macOS Catalyst.

0.4.0

14 Dec 12:14
Compare
Choose a tag to compare

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

14 Dec 09:50
Compare
Choose a tag to compare

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 to Pdf.DataError.
  • PrinterError has been renamed to Printer.PrintError.
  • PrinterView is deprecated. Use Printer directly.

0.2.0

21 Aug 22:16
Compare
Choose a tag to compare

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 by NSAttributedString.
  • Printer has new canPrint functions and properties.
  • PrinterView has new canPrint 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

21 Aug 15:34
Compare
Choose a tag to compare

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 a SwiftUI 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.