-
Notifications
You must be signed in to change notification settings - Fork 507
PencilKit iOS xcode14.0 beta5
Manuel de la Pena edited this page Aug 18, 2022
·
3 revisions
#PencilKit.framework https://github.com/xamarin/xamarin-macios/pull/15702
diff -ruN /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h
--- /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h 2022-07-25 15:35:52.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKStroke.h 2022-08-05 16:55:13.000000000 -0400
@@ -23,7 +23,7 @@
///
/// @param ink The ink for the stroke.
/// @param strokePath The B-spine stroke path for the stroke.
-/// @param transform The affine transform of the stroke. Defaults to `.identity`.
+/// @param transform The affine transform of the stroke.
/// @param mask The mask for the stroke.
#if TARGET_OS_IPHONE
- (instancetype)initWithInk:(PKInk *)ink strokePath:(PKStrokePath *)strokePath transform:(CGAffineTransform)transform mask:(nullable UIBezierPath *)mask;
@@ -31,6 +31,19 @@
- (instancetype)initWithInk:(PKInk *)ink strokePath:(PKStrokePath *)strokePath transform:(CGAffineTransform)transform mask:(nullable NSBezierPath *)mask;
#endif
+/// Create a new stroke.
+///
+/// @param ink The ink for the stroke.
+/// @param strokePath The B-spine stroke path for the stroke.
+/// @param transform The affine transform of the stroke.
+/// @param mask The mask for the stroke.
+/// @param randomSeed The random seed for the stroke.
+#if TARGET_OS_IPHONE
+- (instancetype)initWithInk:(PKInk *)ink strokePath:(PKStrokePath *)strokePath transform:(CGAffineTransform)transform mask:(nullable UIBezierPath *)mask randomSeed:(uint32_t)randomSeed API_AVAILABLE(ios(16.0), macos(13.0));
+#else
+- (instancetype)initWithInk:(PKInk *)ink strokePath:(PKStrokePath *)strokePath transform:(CGAffineTransform)transform mask:(nullable NSBezierPath *)mask randomSeed:(uint32_t)randomSeed API_AVAILABLE(ios(16.0), macos(13.0));
+#endif
+
/// The ink used to render this stroke.
@property (nonatomic, readonly) PKInk *ink;
@@ -57,6 +70,9 @@
/// that intersect the stroke's mask.
@property (nonatomic, readonly) NSArray<PKFloatRange *> *maskedPathRanges;
+/// The random seed for drawing strokes that use randomized effects.
+@property (nonatomic, readonly) uint32_t randomSeed API_AVAILABLE(ios(16.0), macos(13.0));
+
@end
NS_ASSUME_NONNULL_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