- Notifications
You must be signed in to change notification settings - Fork 548
PencilKit iOS xcode16.0 b1
Rolf Bjarne Kvinge edited this page Aug 29, 2024 · 4 revisions
#PencilKit.framework https://github.com/xamarin/xamarin-macios/pull/21148
diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKCanvasView.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKCanvasView.h --- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKCanvasView.h 2024-04-17 07:38:07 +++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKCanvasView.h 2024-05-30 13:25:58 @@ -84,6 +85,13 @@ /// The gesture recognizer used to draw in the canvas. @property (nonatomic, readonly) UIGestureRecognizer *drawingGestureRecognizer; + +/// Controls if drawing input is enabled on this canvas view. Defaults to true. +/// +/// Note `toolPickerSelectedToolItemDidChange` may set this value +/// as some `PKToolPickerItem`s do not have a `PKTool`. +/// This will happen when the canvas is an observer of a `PKToolPicker`. +@property (nonatomic, assign, getter=isDrawingEnabled) BOOL drawingEnabled API_AVAILABLE(ios(18.0), visionos(2.0)); @property (nonatomic) BOOL allowsFingerDrawing API_DEPRECATED("Use 'drawingPolicy' property.", ios(13_0, 14_0)); diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPicker.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPicker.h --- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPicker.h 2024-04-19 08:39:44 +++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPicker.h 2024-05-30 05:01:25 @@ -19,8 +19,13 @@ /// Tells the delegate that the selected tool was changed by the user. /// /// @param toolPicker The tool picker that changed. -- (void)toolPickerSelectedToolDidChange:(PKToolPicker *)toolPicker; +- (void)toolPickerSelectedToolDidChange:(PKToolPicker *)toolPicker API_DEPRECATED("Use toolPickerSelectedToolItemDidChange instead.", ios(13_0, 18_0), visionos(1_0, 2_0)); +/// Tells the delegate that the selected tool item was changed by the user. +/// +/// @param toolPicker The tool picker that changed. +- (void)toolPickerSelectedToolItemDidChange:(PKToolPicker *)toolPicker API_AVAILABLE(ios(18.0), visionos(2.0)); + /// Tells the delegate that the ruler active state was changed by the user. /// /// @param toolPicker The tool picker that changed. @@ -61,8 +66,19 @@ - (void)setVisible:(BOOL)visible forFirstResponder:(UIResponder *)responder; /// The currently selected tool. -@property (nonatomic, strong) PKTool *selectedTool NS_REFINED_FOR_SWIFT; +@property (nonatomic, strong) PKTool *selectedTool API_DEPRECATED("Use selectedToolItem instead.", ios(13_0, 18_0), visionos(1_0, 2_0)) NS_REFINED_FOR_SWIFT; +/// The currently selected tool item. +/// Updating this property will select the tool with the matching identifier without altering the item. +@property (nonatomic, strong) PKToolPickerItem *selectedToolItem API_AVAILABLE(ios(18.0), visionos(2.0)); + +/// The identifier of the selected tool item. +/// Setting it to an identifier without a matching item in this picker has no effect. +@property (nonatomic, copy, nullable) NSString *selectedToolItemIdentifier API_AVAILABLE(ios(18.0), visionos(2.0)); + +/// All tool items within the picker. +@property (nonatomic, readonly) NSArray<PKToolPickerItem *> *toolItems API_AVAILABLE(ios(18.0), visionos(2.0)); + /// Is the ruler toggled such that it should be active on canvases. @property (nonatomic, getter=isRulerActive) BOOL rulerActive; @@ -70,6 +86,7 @@ @property (nonatomic, readonly) BOOL isVisible; /// The name used to automatically save the tool picker's state in the defaults system. +/// As of iOS 18.0 and visionOS 2.0, setting the value to nil disables auto-save. @property (nonatomic, copy, nullable) NSString *stateAutosaveName API_AVAILABLE(ios(14.0)); /// The maximum supported PencilKit content version. @@ -106,6 +123,9 @@ /// By default this is true. @property (nonatomic) BOOL showsDrawingPolicyControls API_AVAILABLE(ios(14.0)); +/// If this is non-nil, the tool picker will display this item when the tool picker is displayed in supported expanded configurations. +@property (nonatomic, strong, nullable) UIBarButtonItem *accessoryItem API_AVAILABLE(ios(18.0), visionos(2.0)); + /// Returns the shared `PKToolPicker` instance for a window. /// The returned tool picker object is typically shared between windows in the same UIWindowScene. + (nullable PKToolPicker *)sharedToolPickerForWindow:(UIWindow *)window NS_SWIFT_NAME(shared(for:)) API_DEPRECATED("Create individual instances instead.", ios(13_0, 14_0)); @@ -115,6 +135,11 @@ /// If two tool pickers are visible for the same first responder, or the same tool picker is visible in two windows /// the result is deterministic, but undefined. - (instancetype)init API_AVAILABLE(ios(14.0)); + +/// Returns a new `PKToolPicker` instance with the given picker items. +/// @param items the items in desired order that are used to set up the picker. At least one item is required. +/// If `items` contains tools with the same identifier, only the first item is used to create the picker. +- (instancetype)initWithToolItems:(NSArray<PKToolPickerItem *> *)items API_AVAILABLE(ios(18.0), visionos(2.0)); @end NS_ASSUME_NONNULL_END diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerCustomItem.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerCustomItem.h --- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerCustomItem.h 1970-01-01 01:00:00 +++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerCustomItem.h 2024-05-30 13:32:29 @@ -0,0 +1,42 @@ +// +// PKToolPickerCustomItem.h +// PencilKit +// +// Copyright © 2024 Apple Inc. All rights reserved. +// + +#import <PencilKit/PKToolPickerItem.h> + +#import <CoreGraphics/CoreGraphics.h> + +@class PKToolPickerCustomItemConfiguration; +@class UIColor; + +NS_ASSUME_NONNULL_BEGIN + +/// A user interface for a custom tool item in PKToolPicker. +API_AVAILABLE(ios(18.0), visionos(2.0)) +@interface PKToolPickerCustomItem : PKToolPickerItem + +/// Create a new custom tool picker item. +/// @param configuration The configuration for the custom item. +- (instancetype)initWithConfiguration:(PKToolPickerCustomItemConfiguration *)configuration NS_REFINED_FOR_SWIFT; + +/// The configuration of the custom tool item. +@property (nonatomic, readonly) PKToolPickerCustomItemConfiguration *configuration NS_REFINED_FOR_SWIFT; + +/// The current color of the custom tool item. +@property (nonatomic, strong) UIColor *color; + +/// The current width of the custom tool item. +@property (nonatomic, assign) CGFloat width; + +/// Causes a new image for this tool item to be requested from `configuration`'s `imageProvider` block. +/// Call this method when the image for the tool item would be different from the one previously provided. +/// It is not necessary to call this method when attributes provided by PencilKit, like `color` or `width`, are changed; +/// the block will be called automatically when those are mutated. +- (void)reloadImage; + +@end + +NS_ASSUME_NONNULL_END diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerCustomItemConfiguration.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerCustomItemConfiguration.h --- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerCustomItemConfiguration.h 1970-01-01 01:00:00 +++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerCustomItemConfiguration.h 2024-05-30 13:32:29 @@ -0,0 +1,66 @@ +// +// PKToolPickerCustomItemConfiguration.h +// PencilKit +// +// Copyright © 2024 Apple Inc. All rights reserved. +// + +#import <CoreGraphics/CoreGraphics.h> +#import <Foundation/Foundation.h> + +@class PKToolPickerCustomItem; +@class UIColor; +@class UIImage; +@class UIViewController; + +NS_ASSUME_NONNULL_BEGIN + +/// A configuration that specifies the appearance and behavior of a item and its contents. +NS_REFINED_FOR_SWIFT +API_AVAILABLE(ios(18.0), visionos(2.0)) +@interface PKToolPickerCustomItemConfiguration : NSObject <NSCopying> + +/// Create a new eraser tool item with a width. +/// @param identifier The identifier for the tool item. +/// @param name The name for the tool item. +- (instancetype)initWithIdentifier:(NSString *)identifier name:(NSString *)name; + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// A string that identifies the item in the picker. +/// For example, com.example.myapp.toolpicker.pencil. +/// If multiple items with the same identifier are used to create the picker, only the first instance is used. +@property (nonatomic, copy) NSString *identifier; + +/// A short string suitable for presentation to users as the name of the tool. +@property (nonatomic, copy) NSString *name; + +/// A block to provide an image representing the given tool item. +/// Return an image at least 150 points tall to avoid the bottom of the item showing during animations. +@property (nonatomic, copy, nullable) UIImage * _Nonnull (^imageProvider)(PKToolPickerCustomItem *); + +/// A block to provide a view controller above the system controls in the tool attributes popover. +@property (nonatomic, copy, nullable) UIViewController * _Nonnull (^viewControllerProvider)(PKToolPickerCustomItem *); + +/// Default width for the tool. +/// Default value is 0. +@property (nonatomic, assign) CGFloat defaultWidth; + +/// A dictionary representing the UI options for choosing width variants, with each element containing its width value paired with its corresponding image. +/// A dictionary with fewer than 2 elements means no selection UI is available for users to adjust the width value. +/// A dictionary with 2 or more elements means that users can adjust the width value using the selection UI. +/// Provide square images with a size of at least 32pts by 32pts. +@property (nonatomic, copy) NSDictionary<NSNumber *, UIImage *> *widthVariants; + +/// Default color for the tool. +/// Default value is black. +@property (nonatomic, strong) UIColor *defaultColor; + +/// Present color selection UI to the user. +/// Default value is NO. +@property (nonatomic, assign) BOOL allowsColorSelection; + +@end + +NS_ASSUME_NONNULL_END diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerEraserItem.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerEraserItem.h --- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerEraserItem.h 1970-01-01 01:00:00 +++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerEraserItem.h 2024-05-30 13:32:29 @@ -0,0 +1,32 @@ +// +// PKToolPickerEraserItem.h +// PencilKit +// +// Copyright © 2024 Apple Inc. All rights reserved. +// + +#import <PencilKit/PKToolPickerItem.h> +#import <PencilKit/PKEraserTool.h> + +#import <CoreGraphics/CoreGraphics.h> + +NS_ASSUME_NONNULL_BEGIN + +/// A user interface for an eraser tool item in PKToolPicker. +API_AVAILABLE(ios(18.0), visionos(2.0)) +@interface PKToolPickerEraserItem : PKToolPickerItem + +/// Create a new eraser tool item. +- (instancetype)initWithEraserType:(PKEraserType)eraserType NS_REFINED_FOR_SWIFT; + +/// Create a new eraser tool item with a width. +/// @param eraserType The type of eraser. +/// @param width The width of the eraser. +- (instancetype)initWithEraserType:(PKEraserType)eraserType width:(CGFloat)width NS_REFINED_FOR_SWIFT; + +/// An eraser tool for erasing parts of a drawing. +@property (nonatomic, readonly) PKEraserTool *eraserTool NS_REFINED_FOR_SWIFT; + +@end + +NS_ASSUME_NONNULL_END diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerInkingItem.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerInkingItem.h --- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerInkingItem.h 1970-01-01 01:00:00 +++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerInkingItem.h 2024-05-30 13:32:29 @@ -0,0 +1,40 @@ +// +// PKToolPickerInkingItem.h +// PencilKit +// +// Copyright © 2024 Apple Inc. All rights reserved. +// + +#import <PencilKit/PKToolPickerItem.h> +#import <PencilKit/PKInkType.h> + +#import <CoreGraphics/CoreGraphics.h> + +@class PKInkingTool; +@class UIColor; + +NS_ASSUME_NONNULL_BEGIN + +/// A user interface for an inking tool item in PKToolPicker. +API_AVAILABLE(ios(18.0), visionos(2.0)) +@interface PKToolPickerInkingItem : PKToolPickerItem + +/// Create a new tool picker item with an PKInkType. +/// @param inkType The ink type for the tool. +/// @param color The color for the tool. +/// @param width The width for the tool. +- (instancetype)initWithInkType:(PKInkType)inkType color:(UIColor *)color width:(CGFloat)width NS_REFINED_FOR_SWIFT; + +/// Create a new tool picker item with an PKInkType. +/// @param inkType The ink type for the tool. +/// @param color The color for the tool. +/// @param width The width for the tool. +/// @param identifier The identifier for the tool item. Passing `nil` resolves to a default value based on the `PKInkType`. +- (instancetype)initWithInkType:(PKInkType)inkType color:(UIColor *)color width:(CGFloat)width identifier:(nullable NSString *)identifier NS_REFINED_FOR_SWIFT; + +/// A tool for drawing on a PKCanvasView. +@property (nonatomic, readonly) PKInkingTool *inkingTool NS_REFINED_FOR_SWIFT; + +@end + +NS_ASSUME_NONNULL_END diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerItem.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerItem.h --- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerItem.h 1970-01-01 01:00:00 +++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerItem.h 2024-05-30 13:32:29 @@ -0,0 +1,26 @@ +// +// PKToolPickerItem.h +// PencilKit +// +// Copyright © 2024 Apple Inc. All rights reserved. +// + +#import <Foundation/Foundation.h> + +NS_ASSUME_NONNULL_BEGIN + +/// A user interface for a tool item in PKToolPicker. +API_AVAILABLE(ios(18.0), visionos(2.0)) +@interface PKToolPickerItem : NSObject <NSCopying> + +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)new NS_UNAVAILABLE; + +/// A string that identifies the item in the picker. +/// For example, com.example.myapp.toolpicker.pencil. +/// If multiple items with the same identifier are used to create the picker, only the first instance is used. +@property (nonatomic, readonly) NSString *identifier; + +@end + +NS_ASSUME_NONNULL_END diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerLassoItem.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerLassoItem.h --- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerLassoItem.h 1970-01-01 01:00:00 +++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerLassoItem.h 2024-05-30 13:32:29 @@ -0,0 +1,26 @@ +// +// PKToolPickerLassoItem.h +// PencilKit +// +// Copyright © 2024 Apple Inc. All rights reserved. +// + +#import <PencilKit/PKToolPickerItem.h> + +@class PKLassoTool; + +NS_ASSUME_NONNULL_BEGIN + +/// A user interface for a lasso tool item in PKToolPicker. +API_AVAILABLE(ios(18.0), visionos(2.0)) +@interface PKToolPickerLassoItem : PKToolPickerItem + +/// Create a new lasso tool item. +- (instancetype)init; + +/// A lasso tool for selecting parts of a drawing. +@property (nonatomic, readonly) PKLassoTool *lassoTool NS_REFINED_FOR_SWIFT; + +@end + +NS_ASSUME_NONNULL_END diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerRulerItem.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerRulerItem.h --- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerRulerItem.h 1970-01-01 01:00:00 +++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerRulerItem.h 2024-05-30 13:32:29 @@ -0,0 +1,21 @@ +// +// PKToolPickerRulerItem.h +// PencilKit +// +// Copyright © 2024 Apple Inc. All rights reserved. +// + +#import <PencilKit/PKToolPickerItem.h> + +NS_ASSUME_NONNULL_BEGIN + +/// A user interface for a ruler tool item in PKToolPicker. +API_AVAILABLE(ios(18.0)) API_UNAVAILABLE(visionos) +@interface PKToolPickerRulerItem : PKToolPickerItem + +/// Create a new ruler tool item. +- (instancetype)init; + +@end + +NS_ASSUME_NONNULL_END diff -ruN /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerScribbleItem.h /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerScribbleItem.h --- /Applications/Xcode_15.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerScribbleItem.h 1970-01-01 01:00:00 +++ /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/PencilKit.framework/Headers/PKToolPickerScribbleItem.h 2024-05-30 13:32:29 @@ -0,0 +1,21 @@ +// +// PKToolPickerScribbleItem.h +// PencilKit +// +// Copyright © 2024 Apple Inc. All rights reserved. +// + +#import <PencilKit/PKToolPickerItem.h> + +NS_ASSUME_NONNULL_BEGIN + +/// A user interface for a Scribble tool item in PKToolPicker. +API_AVAILABLE(ios(18.0)) API_UNAVAILABLE(visionos) +@interface PKToolPickerScribbleItem : PKToolPickerItem + +/// Create a new Scribble tool item. +- (instancetype)init; + +@end + +NS_ASSUME_NONNULL_END