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:) |
Nutrient didn’t call this method. Use NSFileCoordinator and NSFileHandle directly. |
FileManager.fileHandle(forUpdating:withBlock:) |
Nutrient 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 |
Nutrient now uses the system color picker, which doesn’t support customizing the available colors. |
ColorPalette |
Nutrient now uses the system color picker, which doesn’t support customizing the available colors. |
ColorPatch |
Nutrient now uses the system color picker, which doesn’t support customizing the available colors. |
ColorPatch.ColorSet |
Nutrient now uses the system color picker, which doesn’t support customizing the available colors. |