PSPDFKit 12.2 Migration Guide

This guide covers updating an iOS or Mac Catalyst project from PSPDFKit 12 or PSPDFKit 12.1 to PSPDFKit 12.2. Update as soon as possible to take advantage of future new features and fixes.

Removed Deprecated APIs

This version of PSPDFKit removes APIs that have been deprecated for more than a year. Consequently, it removes APIs that were deprecated from PSPDFKit 11 to PSPDFKit 11.4.

The table below summarizes the APIs removed in this release:

Removed Deprecated API Migration Strategy
FileManager.fileHandleForWriting(to:withBlock:) PSPDFKit didn’t call this method. Use NSFileCoordinator and NSFileHandle directly.
FileManager.fileHandle(forUpdating:withBlock:) PSPDFKit didn’t call this method. Use NSFileCoordinator and NSFileHandle directly.
RenderOptions.drawAppearanceStream This property was set to true by PSPDFKit to suppress drawing the existing appearance stream of an annotation when generating a new one. Due to changes in the drawing model for annotations in PSPDFKit 10.2, this is obsolete.
ColorPickerFactory PSPDFKit now uses the system color picker, which doesn’t support customizing the available colors.
ColorPalette PSPDFKit now uses the system color picker, which doesn’t support customizing the available colors.
ColorPatch PSPDFKit now uses the system color picker, which doesn’t support customizing the available colors.
ColorPatch.ColorSet PSPDFKit now uses the system color picker, which doesn’t support customizing the available colors.