PSPDFKit 11.5 Migration Guide
This guide covers updating an iOS or Mac Catalyst project from PSPDFKit 11.4 for iOS to PSPDFKit 11.5 for iOS. We encourage you to update as soon as possible, in order 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, and therefore removes APIs that were deprecated in PSPDFKit 10.5 for iOS.
Here’s a list of all the APIs removed in this release:
|Removed Deprecated API||Migration Strategy|
|All APIs related to the page grabber, such as
||The scroll indicator from
||Since iOS 13, the bar has been styled based on the
||Appearance mode changes haven’t been animated since iOS 13.|
||Appearance mode changes only affect page rendering and should no longer be used for UI customization.|
Most image resources used by
PSPDFKit.framework are now located in an asset catalog instead of inside
PSPDFKit.bundle. If you’re customizing the icons by replacing the images in
PSPDFKit.bundle, please switch to using the
SDK.imageLoadingHandler API, which is a closure that gives you a name and returns an
UIImage instance. You can read more about this in our guide on customizing the PDF viewer icons. Note that various image resources inside
PSPDFKitUI.framework were already using an asset catalog.
We also unified the icons used for the note annotations so that the icons rendered on the PDF page and the icons in the user interface are the same. As a result of this, the icon names used for
NoteAnnotation.annotationIcon have been updated to be same names as the ones used for
NoteAnnotation.renderAnnotationIcon. Below is a list of the updated icon names:
|Old Icon Name||New Icon Name|