In my case, I solved it with the following code.
let toolPiker = PKToolPicker.init()
init | Apple Developer Documentation - https://developer.apple.com/documentation/pencilkit/pktoolpicker/3552393-init?language=objc
Topic:
App & System Services
SubTopic:
General
Tags: