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
Post
Replies
Boosts
Views
Activity
In iOS 18.1, textSelection(_:) works in List!
https://stackoverflow.com/a/79135453/11073133