PDFKit iOS 11.0 Beta 1 to Beta 2 API Differences

PDFAnnotation.h
Header
FromPDFAnnotationUtilities.h
ToPDFAnnotation.h

Declaration
From- (nonnull instancetype)initWithBounds:(CGRect)bounds forType:(nonnull NSString *)annotationType withProperties:(nullable NSDictionary *)properties
To- (nonnull instancetype)initWithBounds:(CGRect)bounds forType:(nonnull PDFAnnotationSubtype)annotationType withProperties:(nullable NSDictionary *)properties

Declaration
From- (BOOL)setValue:(nonnull id)value forAnnotationKey:(nonnull NSString *)key
To- (BOOL)setValue:(nonnull id)value forAnnotationKey:(nonnull PDFAnnotationKey)key

Declaration
From- (BOOL)setBoolean:(BOOL)value forAnnotationKey:(nonnull NSString *)key
To- (BOOL)setBoolean:(BOOL)value forAnnotationKey:(nonnull PDFAnnotationKey)key

Declaration
From- (BOOL)setRect:(CGRect)value forAnnotationKey:(nonnull NSString *)key
To- (BOOL)setRect:(CGRect)value forAnnotationKey:(nonnull PDFAnnotationKey)key

Declaration
From- (nullable id)valueForAnnotationKey:(nonnull NSString *)key
To- (nullable id)valueForAnnotationKey:(nonnull PDFAnnotationKey)key

Declaration
From- (void)removeValueForAnnotationKey:(nonnull NSString *)key
To- (void)removeValueForAnnotationKey:(nonnull PDFAnnotationKey)key

PDFAnnotationUtilities.h
Header
FromPDFAnnotationUtilities.h
ToPDFAnnotation.h

Declaration
From@property (nonatomic, copy, nonnull) NSString *widgetFieldType
To@property (nonatomic, copy, nonnull) PDFAnnotationWidgetSubtype widgetFieldType

PDFDocument.h
Declaration
From- (BOOL)writeToFile:(nonnull NSString *)path withOptions:(nullable NSDictionary *)options
To- (BOOL)writeToFile:(nonnull NSString *)path withOptions:(nullable NSDictionary<PDFDocumentWriteOption,id> *)options

Declaration
From- (BOOL)writeToURL:(nonnull NSURL *)url withOptions:(nullable NSDictionary *)options
To- (BOOL)writeToURL:(nonnull NSURL *)url withOptions:(nullable NSDictionary<PDFDocumentWriteOption,id> *)options

PDFThumbnailView.h
PDFView.h
Removed PDFView.sizeToFitScaleFactor