-
Notifications
You must be signed in to change notification settings - Fork 507
PencilKit macOS 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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKContentVersion.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKContentVersion.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKContentVersion.h 2023-05-31 09:00:36
@@ -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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKDrawing.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKDrawing.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKDrawing.h 2023-03-09 19:07:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKDrawing.h 2023-05-31 09:00:36
@@ -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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInk.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInk.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInk.h 2023-03-09 19:07:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInk.h 2023-05-31 09:00:36
@@ -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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkType.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkType.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkType.h 2023-03-09 19:07:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkType.h 2023-05-31 09:00:36
@@ -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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkingTool.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkingTool.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkingTool.h 2023-03-09 19:07:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKInkingTool.h 2023-05-31 09:00:36
@@ -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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h 2023-03-09 19:07:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h 2023-05-31 09:00:36
@@ -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/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePoint.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePoint.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePoint.h 2023-03-09 19:07:54
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStrokePoint.h 2023-05-31 09:00:36
@@ -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
- 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