API Differences in PencilKit in iOS 26.0

It can be difficult to find what changed in Apple SDKs. These pages are algorithmically generated and show what is new in PencilKit in the iOS 26.0 SDK.

Table of Contents

Functions & Methods

PKDrawing
nonisolated(nonsending) public func draw(in cgContext: CoreGraphics.CGContext, frame: CoreFoundation.CGRect, from sourceRect: CoreFoundation.CGRect, darkUserInterfaceStyle: Swift.Bool = false) async
PKToolPickerVisibility
public mutating func toggle()
PKInkingTool
+ (nonnull CGColorRef)invertColor:(nonnull CGColorRef)color;

Properties & Constants

PKInkingTool
public var azimuth: CoreFoundation.CGFloat
PKResponderState
public var toolPickerVisibility: PencilKit.PKToolPickerVisibility?
PKStrokePoint
public var threshold: CoreFoundation.CGFloat
PKToolPickerItem
public var tool: (any PencilKit.PKTool)?
extern const PKInkType PKInkTypeReed
PKStrokePoint
@property(nonatomic, readonly) CGFloat threshold;
PKToolPickerItem
@property(nonatomic, readonly, nullable) PKTool *tool;
PKInkingTool
@property(nonatomic, readonly) CGFloat azimuth;

Initializers

PKInkingTool
public init(_ inkType: PencilKit.PKInkingTool.InkType, color: UIKit.UIColor = UIColor.black, width: CoreFoundation.CGFloat? = nil, azimuth: CoreFoundation.CGFloat)
PKStrokePoint
public init(location: CoreFoundation.CGPoint, timeOffset: Foundation.TimeInterval, size: CoreFoundation.CGSize, opacity: CoreFoundation.CGFloat, force: CoreFoundation.CGFloat, azimuth: CoreFoundation.CGFloat, altitude: CoreFoundation.CGFloat, secondaryScale: CoreFoundation.CGFloat, threshold: CoreFoundation.CGFloat)
PKToolPickerInkingItem
convenience public init(type: PencilKit.PKInkingTool.InkType, color: UIKit.UIColor? = nil, width: CoreFoundation.CGFloat? = nil, azimuth: CoreFoundation.CGFloat? = nil, identifier: Swift.String? = nil)
PKInkingTool
- (nonnull instancetype)initWithInkType:(nonnull PKInkType)type color:(nonnull NSColor *)color width:(CGFloat)width azimuth:(CGFloat)angle;

Enum Cases

InkType
case reed