Nutrient iOS SDK 13 migration guide
This guide covers updating an iOS or Mac Catalyst project from Nutrient iOS SDK 12.3 or Nutrient iOS SDK 12.4 to Nutrient iOS SDK 13. We encourage you to update as soon as possible, in order to take advantage of future new features and fixes.
Nutrient iOS SDK 13 fully supports iOS 15, 16, and 17. Xcode 15 or later is required to use this version of the SDK. Learn more in our version support guide.
Refer to the list of the removed APIs to find a replacement API. If you use removed APIs in your project, you’ll need to update to the replacement as soon as you update to Nutrient iOS SDK 13.
Refer to the list of the deprecated APIs to find a replacement API. If you use deprecated APIs in your project, your project will continue to work, but the APIs will be removed in an upcoming version of Nutrient iOS SDK.
Measurement Tools
Nutrient iOS SDK 13 removes support for setting a calibration length for a distance measurement annotation from the annotation inspector. Calibrating lengths is now done via the new scale calibration annotation tool that uses the .measurementScaleCalibration annotation variant.
The AnnotationStyle.Key values for the scale and precision to add these sections to the annotation inspector have been removed and replaced by AnnotationStyle.Key.measurementValueConfiguration, which will present the new scale list UI. That’s because scale and precision are now always grouped together.
Removed APIs
This is the list of all symbols that were removed in Nutrient iOS SDK 13. If you use, implement, or override any of the following, take appropriate action.
AnnotationStyle.Key.measurementScale
UseAnnotationStyle.Key.measurementValueConfigurationinstead.AnnotationStyle.Key.measurementPrecision
UseAnnotationStyle.Key.measurementValueConfigurationinstead.AnnotationStyle.Key.measurementCalibration
UseAnnotationStyle.Key.measurementValueConfigurationinstead.
Deprecated APIs
This is the list of all symbols that were deprecated in Nutrient iOS SDK 13. If you use, implement, or override any of the following, take appropriate action.
Document.measurementScale
UseDocument.activeMeasurementValueConfiguration.scaleinstead.Document.measurementPrecision
UseDocument.activeMeasurementValueConfiguration.precisioninstead.DocumentProvider.measurementScale
UseDocument.activeMeasurementValueConfiguration.scaleinstead.DocumentProvider.measurementPrecision
UseDocument.activeMeasurementValueConfiguration.precisioninstead.