Post

Replies

Boosts

Views

Activity

Reply to Using the UIPasteControl
Hello, Have the same issue. I added UIPasteControl to my UIViewController. I copy content from another application, wait 15 minutes and after that I press to UIPasteControl and nothing happens. But pasteboard has content, I see it in another application. I call UIPasteboard.general.detectValues(for: patterns) and see same errors in console: Error Domain=PBErrorDomain Code=13 "Operation not authorized." UserInfo={NSLocalizedDescription=Operation not authorized.} Is there a way to know in advance whether there is content in the pasteboard before showing the UIPasteControl?
Nov ’23