PencilKit iOS 15.5 to 16.0 API Differences

PKDrawing
Modified PKDrawing.bounds
Replacement
Frompublic var bounds: CoreGraphics.CGRect { get }
Topublic var bounds: CoreFoundation.CGRect { get }

Modified PKDrawing.image(from:scale:)
Replacement
Frompublic func image(from: CoreGraphics.CGRect, scale: CoreGraphics.CGFloat) -> UIKit.UIImage
Topublic func image(from: CoreFoundation.CGRect, scale: CoreFoundation.CGFloat) -> UIKit.UIImage

Modified PKDrawing.transform(using:)
Replacement
Frommutating public func transform(using: CoreGraphics.CGAffineTransform)
Tomutating public func transform(using: CoreFoundation.CGAffineTransform)

Modified PKDrawing.transformed(using:)
Replacement
Frompublic func transformed(using: CoreGraphics.CGAffineTransform) -> PencilKit.PKDrawing
Topublic func transformed(using: CoreFoundation.CGAffineTransform) -> PencilKit.PKDrawing

PKInkingTool
Modified PKInkingTool.InkType.defaultWidth
Replacement
Frompublic var defaultWidth: CoreGraphics.CGFloat { get }
Topublic var defaultWidth: CoreFoundation.CGFloat { get }

Modified PKInkingTool.InkType.validWidthRange
Replacement
Frompublic var validWidthRange: Swift.ClosedRange<CoreGraphics.CGFloat> { get }
Topublic var validWidthRange: Swift.ClosedRange<CoreFoundation.CGFloat> { get }

PKStroke
Modified PKStroke.init(ink:path:transform:mask:)
Replacement
Frompublic init(ink: PencilKit.PKInk, path: PencilKit.PKStrokePath, transform: CoreGraphics.CGAffineTransform = .identity, mask: UIKit.UIBezierPath? = nil)
Topublic init(ink: PencilKit.PKInk, path: PencilKit.PKStrokePath, transform: CoreFoundation.CGAffineTransform = .identity, mask: UIKit.UIBezierPath? = nil)

Modified PKStroke.maskedPathRanges
Replacement
Frompublic var maskedPathRanges: [Swift.ClosedRange<CoreGraphics.CGFloat>] { get }
Topublic var maskedPathRanges: [Swift.ClosedRange<CoreFoundation.CGFloat>] { get }

Modified PKStroke.renderBounds
Replacement
Frompublic var renderBounds: CoreGraphics.CGRect { get }
Topublic var renderBounds: CoreFoundation.CGRect { get }

PKStrokePath
Modified PKStrokePath.interpolatedLocation(at:)
Replacement
Frompublic func interpolatedLocation(at: CoreGraphics.CGFloat) -> CoreGraphics.CGPoint
Topublic func interpolatedLocation(at: CoreFoundation.CGFloat) -> CoreFoundation.CGPoint

Modified PKStrokePath.interpolatedPoint(at:)
Replacement
Frompublic func interpolatedPoint(at: CoreGraphics.CGFloat) -> PencilKit.PKStrokePoint
Topublic func interpolatedPoint(at: CoreFoundation.CGFloat) -> PencilKit.PKStrokePoint

Modified PKStrokePath.interpolatedPoints(in:by:)
Replacement
Frompublic func interpolatedPoints(in: Swift.ClosedRange<CoreGraphics.CGFloat>? = nil, by: PencilKit.PKStrokePath.InterpolatedSlice.Stride) -> PencilKit.PKStrokePath.InterpolatedSlice
Topublic func interpolatedPoints(in: Swift.ClosedRange<CoreFoundation.CGFloat>? = nil, by: PencilKit.PKStrokePath.InterpolatedSlice.Stride) -> PencilKit.PKStrokePath.InterpolatedSlice

Modified PKStrokePath.parametricValue(_:offsetBy:)
Replacement
Frompublic func parametricValue(_: CoreGraphics.CGFloat, offsetBy: PencilKit.PKStrokePath.InterpolatedSlice.Stride) -> CoreGraphics.CGFloat
Topublic func parametricValue(_: CoreFoundation.CGFloat, offsetBy: PencilKit.PKStrokePath.InterpolatedSlice.Stride) -> CoreFoundation.CGFloat

PKStrokePoint
Modified PKStrokePoint.init(location:timeOffset:size:opacity:force:azimuth:altitude:)
Replacement
Frompublic init(location: CoreGraphics.CGPoint, timeOffset: Foundation.TimeInterval, size: CoreGraphics.CGSize, opacity: CoreGraphics.CGFloat, force: CoreGraphics.CGFloat, azimuth: CoreGraphics.CGFloat, altitude: CoreGraphics.CGFloat)
Topublic init(location: CoreFoundation.CGPoint, timeOffset: Foundation.TimeInterval, size: CoreFoundation.CGSize, opacity: CoreFoundation.CGFloat, force: CoreFoundation.CGFloat, azimuth: CoreFoundation.CGFloat, altitude: CoreFoundation.CGFloat)

Modified PKStrokePoint.altitude
Replacement
Frompublic var altitude: CoreGraphics.CGFloat { get }
Topublic var altitude: CoreFoundation.CGFloat { get }

Modified PKStrokePoint.azimuth
Replacement
Frompublic var azimuth: CoreGraphics.CGFloat { get }
Topublic var azimuth: CoreFoundation.CGFloat { get }

Modified PKStrokePoint.force
Replacement
Frompublic var force: CoreGraphics.CGFloat { get }
Topublic var force: CoreFoundation.CGFloat { get }

Modified PKStrokePoint.location
Replacement
Frompublic var location: CoreGraphics.CGPoint { get }
Topublic var location: CoreFoundation.CGPoint { get }

Modified PKStrokePoint.opacity
Replacement
Frompublic var opacity: CoreGraphics.CGFloat { get }
Topublic var opacity: CoreFoundation.CGFloat { get }

Modified PKStrokePoint.size
Replacement
Frompublic var size: CoreGraphics.CGSize { get }
Topublic var size: CoreFoundation.CGSize { get }