PencilKit custom tool

Hi,

can i create custom tool for PKToolPicker?

On documentation page on PKTool says "Don’t adopt this protocol in your own objects. Instead, create a tool object to provide users with the desired the tool behavior."

Best regards, Matej Klemen

Answered by Engineer in 791590022

Good news! Adding your own custom tool items to PKToolPicker is now supported in the beta releases of iOS 18, iPadOS 18, and visionOS 2.

You can now add any tool your canvas supports, even one with custom attributes!

Check out the documentation and related WWDC video for more details:

https://developer.apple.com/documentation/pencilkit/pktoolpickercustomitem

https://developer.apple.com/videos/play/wwdc2024/10214/

Good news! Adding your own custom tool items to PKToolPicker is now supported in the beta releases of iOS 18, iPadOS 18, and visionOS 2.

You can now add any tool your canvas supports, even one with custom attributes!

Check out the documentation and related WWDC video for more details:

https://developer.apple.com/documentation/pencilkit/pktoolpickercustomitem

https://developer.apple.com/videos/play/wwdc2024/10214/

PencilKit custom tool
 
 
Q