Skip to content

PencilKit iOS xcode14.3 beta1

Alex Soto edited this page Mar 15, 2023 · 2 revisions

#PencilKit.framework https://github.com/xamarin/xamarin-macios/pull/17810

diff -ruN /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKEraserTool.h /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKEraserTool.h
--- /Applications/Xcode_14.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKEraserTool.h	2022-11-10 19:18:04
+++ /Applications/Xcode_14.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKEraserTool.h	2023-02-12 14:13:18
@@ -12,7 +12,8 @@
 
 API_AVAILABLE(ios(13.0), macos(10.15)) typedef NS_ENUM(NSInteger, PKEraserType) {
     PKEraserTypeVector,
-    PKEraserTypeBitmap
+    PKEraserTypeBitmap,
+    PKEraserTypeFixedWidthBitmap API_AVAILABLE(ios(16.4), macos(13.3))
 } NS_REFINED_FOR_SWIFT;
 
 /// An eraser tool for erasing parts of a drawing.
@@ -23,6 +24,23 @@
 @property (nonatomic, readonly) PKEraserType eraserType;
 
 - (instancetype)initWithEraserType:(PKEraserType)eraserType NS_DESIGNATED_INITIALIZER;
+
+/// Create a new eraser tool with a width.
+/// @param eraserType The type of eraser.
+/// @param width The width of the eraser.
+- (instancetype)initWithEraserType:(PKEraserType)eraserType width:(CGFloat)width NS_DESIGNATED_INITIALIZER API_AVAILABLE(ios(16.4), macos(13.3));
+
+/// The width of the eraser.
+@property (nonatomic, readonly) CGFloat width API_AVAILABLE(ios(16.4), macos(13.3));
+
+/// The default width for an eraser type.
++ (CGFloat)defaultWidthForEraserType:(PKEraserType)eraserType API_AVAILABLE(ios(16.4), macos(13.3));
+
+/// The minimum width for an eraser type.
++ (CGFloat)minimumWidthForEraserType:(PKEraserType)eraserType API_AVAILABLE(ios(16.4), macos(13.3));
+
+/// The maximum width for an eraser type.
++ (CGFloat)maximumWidthForEraserType:(PKEraserType)eraserType API_AVAILABLE(ios(16.4), macos(13.3));
 
 @end
 
Clone this wiki locally