-
Notifications
You must be signed in to change notification settings - Fork 514
PencilKit iOS xcode15.0 b1
Haritha Mohan edited this page Aug 18, 2023
·
3 revisions
#PencilKit.framework https://github.com/xamarin/xamarin-macios/pull/18769
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKCanvasView.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKCanvasView.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKCanvasView.h 2023-03-09 23:52:42
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKCanvasView.h 2023-05-31 07:31:50
@@ -91,6 +91,14 @@
/// Defaults to `PKCanvasViewDrawingPolicyDefault`.
@property (nonatomic, assign) PKCanvasViewDrawingPolicy drawingPolicy API_AVAILABLE(ios(14.0));
+/// The maximum supported PencilKit content version.
+///
+/// Setting this to less than `.latest` limits the edits that can be made so they are compatible with the
+/// specified version. If setting this property, also set it on any `PKToolPicker` used.
+///
+/// Defaults to `.latest`.
+@property (nonatomic, assign) PKContentVersion maximumSupportedContentVersion API_AVAILABLE(ios(17.0), macos(14.0));
+
@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKContentVersion.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKContentVersion.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKContentVersion.h 1969-12-31 19:00:00
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKContentVersion.h 2023-05-31 07:31:50
@@ -0,0 +1,24 @@
+//
+// PKContentVersion.h
+// PencilKit
+//
+// Copyright © 2023 Apple. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+
+/// A version specifying which PencilKit features are used/allowed.
+API_AVAILABLE(ios(17.0), macos(14.0))
+typedef NS_ENUM(NSInteger, PKContentVersion) {
+ /// Version for inks introduced in iOS 14.0.
+ ///
+ /// Inks included are Pen, Pencil, and Marker.
+ PKContentVersion1 NS_SWIFT_NAME(version1) = 1,
+ /// Version for inks introduced in iOS 17.0.
+ ///
+ /// Inks included are Pen, Pencil, Marker, Monoline, Fountain Pen, Watercolor, and Crayon.
+ PKContentVersion2 NS_SWIFT_NAME(version2),
+ /// The latest version including all features.
+ PKContentVersionLatest = PKContentVersion2
+};
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKDrawing.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKDrawing.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKDrawing.h 2023-03-09 23:52:42
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKDrawing.h 2023-05-31 07:31:50
@@ -2,9 +2,11 @@
// PKDrawing.h
// PencilKit
//
-// Copyright © 2019 Apple. All rights reserved.
+// Copyright © 2023 Apple. All rights reserved.
//
+#import <PencilKit/PKContentVersion.h>
+
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#else
@@ -56,6 +58,9 @@
/// The bounds of the drawing's contents, taking into account the rendered width of all content.
/// If these bounds are used to render an image with `imageFromRect:scale:`, no contents will be cropped.
@property (nonatomic, readonly) CGRect bounds;
+
+/// The PencilKit version required to use this drawing.
+@property (nonatomic, readonly) PKContentVersion requiredContentVersion API_AVAILABLE(ios(17.0), macos(14.0));
/// Renders the drawing to an image.
///
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInk.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInk.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInk.h 2023-03-09 23:52:42
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInk.h 2023-05-31 07:31:50
@@ -2,12 +2,12 @@
// PKInk.h
// PencilKit
//
-// Copyright © 2020 Apple. All rights reserved.
+// Copyright © 2023 Apple. All rights reserved.
//
#import <PencilKit/PKInkType.h>
+#import <PencilKit/PKContentVersion.h>
-
NS_ASSUME_NONNULL_BEGIN
/// PKInk provides a description of how marks on a PKCanvas render and are created.
@@ -33,6 +33,9 @@
#else
@property (nonatomic, readonly) NSColor *color;
#endif
+
+/// The PencilKit version required to use this ink.
+@property (nonatomic, readonly) PKContentVersion requiredContentVersion API_AVAILABLE(ios(17.0), macos(14.0));
@end
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkType.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkType.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkType.h 2023-03-09 23:52:42
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkType.h 2023-05-31 07:31:50
@@ -9,6 +9,10 @@
typedef NSString * PKInkType NS_TYPED_ENUM API_AVAILABLE(ios(13.0)) NS_REFINED_FOR_SWIFT;
-API_AVAILABLE(ios(13.0)) FOUNDATION_EXPORT PKInkType const PKInkTypePen;
-API_AVAILABLE(ios(13.0)) FOUNDATION_EXPORT PKInkType const PKInkTypePencil;
-API_AVAILABLE(ios(13.0)) FOUNDATION_EXPORT PKInkType const PKInkTypeMarker;
+API_AVAILABLE(ios(13.0), macos(10.15)) FOUNDATION_EXPORT PKInkType const PKInkTypePen;
+API_AVAILABLE(ios(13.0), macos(10.15)) FOUNDATION_EXPORT PKInkType const PKInkTypePencil;
+API_AVAILABLE(ios(13.0), macos(10.15)) FOUNDATION_EXPORT PKInkType const PKInkTypeMarker;
+API_AVAILABLE(ios(17.0), macos(14.0)) FOUNDATION_EXPORT PKInkType const PKInkTypeMonoline;
+API_AVAILABLE(ios(17.0), macos(14.0)) FOUNDATION_EXPORT PKInkType const PKInkTypeFountainPen;
+API_AVAILABLE(ios(17.0), macos(14.0)) FOUNDATION_EXPORT PKInkType const PKInkTypeWatercolor;
+API_AVAILABLE(ios(17.0), macos(14.0)) FOUNDATION_EXPORT PKInkType const PKInkTypeCrayon;
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkingTool.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkingTool.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkingTool.h 2023-03-09 23:52:42
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkingTool.h 2023-05-31 07:31:50
@@ -2,11 +2,12 @@
// PKInkingTool.h
// PencilKit
//
-// Copyright © 2020 Apple. All rights reserved.
+// Copyright © 2023 Apple. All rights reserved.
//
#import <PencilKit/PKTool.h>
#import <PencilKit/PKInkType.h>
+#import <PencilKit/PKContentVersion.h>
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
@@ -85,6 +86,9 @@
/// The ink that this tool will create strokes with.
@property (nonatomic, readonly) PKInk *ink API_AVAILABLE(ios(14.0));
+
+/// The PencilKit version required to use this inking tool.
+@property (nonatomic, readonly) PKContentVersion requiredContentVersion API_AVAILABLE(ios(17.0), macos(14.0));
@end
NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h 2023-03-09 23:52:42
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h 2023-05-31 07:31:50
@@ -2,9 +2,11 @@
// PKStroke.h
// PencilKit
//
-// Copyright © 2020 Apple. All rights reserved.
+// Copyright © 2023 Apple. All rights reserved.
//
+#import <PencilKit/PKContentVersion.h>
+
#if TARGET_OS_IPHONE
#import <UIKit/UIKit.h>
#else
@@ -72,6 +74,9 @@
/// The random seed for drawing strokes that use randomized effects.
@property (nonatomic, readonly) uint32_t randomSeed API_AVAILABLE(ios(16.0), macos(13.0));
+
+/// The PencilKit version required to use this stroke.
+@property (nonatomic, readonly) PKContentVersion requiredContentVersion API_AVAILABLE(ios(17.0), macos(14.0));
@end
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePoint.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePoint.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePoint.h 2023-03-09 23:52:42
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePoint.h 2023-05-31 07:31:50
@@ -20,6 +20,9 @@
/// Create a new point with the provided properties.
- (instancetype)initWithLocation:(CGPoint)location timeOffset:(NSTimeInterval)timeOffset size:(CGSize)size opacity:(CGFloat)opacity force:(CGFloat)force azimuth:(CGFloat)azimuth altitude:(CGFloat)altitude NS_DESIGNATED_INITIALIZER;
+/// Create a new point with the provided properties.
+- (instancetype)initWithLocation:(CGPoint)location timeOffset:(NSTimeInterval)timeOffset size:(CGSize)size opacity:(CGFloat)opacity force:(CGFloat)force azimuth:(CGFloat)azimuth altitude:(CGFloat)altitude secondaryScale:(CGFloat)secondaryScale NS_DESIGNATED_INITIALIZER;
+
/// Location of the point.
@property (nonatomic, readonly) CGPoint location;
/// Time offset since the start of the stroke path in seconds.
@@ -35,6 +38,11 @@
@property (nonatomic, readonly) CGFloat force;
/// Altitude used to create this point in radians, 0.0-π/2 radians
@property (nonatomic, readonly) CGFloat altitude;
+
+/// The scaling of the point for secondary effects.
+///
+/// For example the scaling of the pigment in the watercolor ink.
+@property (nonatomic, readonly) CGFloat secondaryScale API_AVAILABLE(ios(17.0), macos(14.0));
@end
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPicker.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPicker.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPicker.h 2023-03-09 23:49:38
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPicker.h 2023-05-31 09:12:21
@@ -5,6 +5,7 @@
// Copyright © 2019 Apple. All rights reserved.
//
+#import <PencilKit/PKContentVersion.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@@ -70,6 +71,14 @@
/// The name used to automatically save the tool picker's state in the defaults system.
@property (nonatomic, copy, nullable) NSString *stateAutosaveName API_AVAILABLE(ios(14.0));
+
+/// The maximum supported PencilKit content version.
+///
+/// Setting this to less than `.latest` limits the tools that are available to select so that they are compatible with the
+/// specified version. If setting this property, also set it on `PKCanvasView`.
+///
+/// Defaults to `.latest`.
+@property (nonatomic, assign) PKContentVersion maximumSupportedContentVersion API_AVAILABLE(ios(17.0), macos(14.0));
/// The frame within a specific view that the tool picker covers.
///
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status
- xcode16.2 Binding Status