Skip to content

PencilKit iOS xcode26.0 b5

Rolf Bjarne Kvinge edited this page Aug 8, 2025 · 2 revisions

#PencilKit.framework

Rolf

diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKContentVersion.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKContentVersion.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKContentVersion.h	2025-07-16 01:27:25
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKContentVersion.h	2025-07-26 22:03:31
@@ -10,6 +10,7 @@
 
 /// A version specifying which PencilKit features are used/allowed.
 API_AVAILABLE(ios(17.0), macos(14.0))
+NS_SWIFT_SENDABLE
 typedef NS_ENUM(NSInteger, PKContentVersion) {
     /// Version for inks introduced in iOS 14.0.
     ///
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKDrawing.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKDrawing.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKDrawing.h	2025-07-16 01:27:26
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKDrawing.h	2025-07-26 22:03:31
@@ -30,6 +30,7 @@
 
 /// The data model object for storing drawing data created from PKCanvasView.
 API_AVAILABLE(ios(13.0), macos(10.15))
+NS_SWIFT_SENDABLE
 @interface PKDrawing : NSObject <NSCopying, NSSecureCoding>
 
 /// Initializes and returns a blank drawing.
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKEraserTool.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKEraserTool.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKEraserTool.h	2025-07-16 01:27:25
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKEraserTool.h	2025-07-26 22:03:31
@@ -17,6 +17,7 @@
 
 /// An eraser tool for erasing parts of a drawing.
 API_AVAILABLE(ios(13.0), macos(10.15))
+NS_SWIFT_SENDABLE
 @interface PKEraserTool : PKTool
 
 /// The eraser type.
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInk.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInk.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInk.h	2025-07-16 01:27:26
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInk.h	2025-07-26 22:03:31
@@ -12,6 +12,7 @@
 
 /// PKInk provides a description of how marks on a PKCanvas render and are created.
 API_AVAILABLE(ios(14.0), macos(11.0))
+NS_SWIFT_SENDABLE
 @interface PKInk : NSObject <NSCopying>
 
 /// Create a new ink, specifying its type, color.
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkingTool.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkingTool.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkingTool.h	2025-07-16 01:27:26
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkingTool.h	2025-07-26 22:06:36
@@ -22,6 +22,7 @@
 
 /// A tool for drawing on a PKCanvasView.
 API_AVAILABLE(ios(13.0), macos(10.15))
+NS_SWIFT_SENDABLE
 @interface PKInkingTool : PKTool
 
 /// Create a new inking tool, specifying its type, color, and width.
@@ -90,6 +91,15 @@
 /// @param toUserInterfaceStyle The user interface style to convert the color to.
 + (UIColor *)convertColor:(UIColor *)color fromUserInterfaceStyle:(UIUserInterfaceStyle)fromUserInterfaceStyle to:(UIUserInterfaceStyle)toUserInterfaceStyle;
 #else
+
+/// Converts a color from light to dark appearance or vice versa.
+///
+/// @param color The color to be inverted light<->dark.
+/// @return The inverted color.
+///
+/// This has the same effect as `convertColor` with opposite user interface styles.
++ (CGColorRef)invertColor:(CGColorRef)color API_AVAILABLE(ios(26.0), macos(26.0), visionos(26.0));
+
 @property (nonatomic, readonly) NSColor *color;
 #endif
 
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKLassoTool.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKLassoTool.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKLassoTool.h	2025-07-16 01:27:25
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKLassoTool.h	2025-07-26 22:03:30
@@ -11,6 +11,7 @@
 
 /// A lasso tool for selecting parts of a drawing.
 API_AVAILABLE(ios(13.0), macos(10.15))
+NS_SWIFT_SENDABLE
 @interface PKLassoTool : PKTool
 
 - (instancetype)init NS_DESIGNATED_INITIALIZER;
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKResponderState.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKResponderState.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKResponderState.h	2025-07-16 01:27:25
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKResponderState.h	2025-07-26 22:03:31
@@ -13,6 +13,7 @@
 
 /// The visibility state of a tool picker.
 API_AVAILABLE(ios(26.0), visionos(26.0))
+NS_SWIFT_SENDABLE
 typedef NS_ENUM(NSInteger, PKToolPickerVisibility) {
     /// Inherit the tool picker visibility from the next responder.
     PKToolPickerVisibilityInherited NS_REFINED_FOR_SWIFT,
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h	2025-07-16 01:27:25
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h	2025-07-26 22:03:31
@@ -19,6 +19,7 @@
 
 /// The data model value representing a stroke in a `PKDrawing`.
 API_AVAILABLE(ios(14.0), macos(11.0))
+NS_SWIFT_SENDABLE
 @interface PKStroke : NSObject <NSCopying>
 
 /// Create a new stroke.
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePath.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePath.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePath.h	2025-07-15 23:32:56
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePath.h	2025-07-26 22:03:31
@@ -14,6 +14,7 @@
 
 /// A uniform cubic B-spline representing the point data of a `PKStroke`.
 API_AVAILABLE(ios(14.0), macos(11.0))
+NS_SWIFT_SENDABLE
 @interface PKStrokePath : NSObject <NSCopying>
 
 /// Create a stroke path value with the given cubic B-spline control points.
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePoint.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePoint.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePoint.h	2025-07-16 01:27:26
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePoint.h	2025-07-26 22:03:31
@@ -13,6 +13,7 @@
 /// `PKStrokePoint` stores its properties compressed, the value read for a property may not
 /// exactly equal the value set for a property.
 API_AVAILABLE(ios(14.0), macos(11.0))
+NS_SWIFT_SENDABLE
 @interface PKStrokePoint : NSObject <NSCopying>
 
 - (instancetype)init NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKTool.h /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKTool.h
--- /Applications/Xcode_26.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKTool.h	2025-07-16 01:27:25
+++ /Applications/Xcode_26.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKTool.h	2025-07-26 22:03:31
@@ -13,6 +13,7 @@
 /// Should not be subclassed outside of the PencilKit framework.
 NS_REFINED_FOR_SWIFT
 API_AVAILABLE(ios(13.0), macos(10.15))
+NS_SWIFT_SENDABLE
 @interface PKTool : NSObject <NSCopying>
 
 - (instancetype)init NS_UNAVAILABLE;
Clone this wiki locally