Hello,
I like this new UIPasteControl
a lot, however, I've noticed that it can often stay "active" even though there is nothing that can be pasted regardless of the target
... I'm not sure if this is a bigger Apple bug but I get the following error in the override func paste(itemProviders: [NSItemProvider]):
[Pasteboard] ...requesting item failed with error: Error Domain=PBErrorDomain Code=13 "Operation not authorized." UserInfo={NSLocalizedDescription=Operation not authorized.}
What is going on here?
The UIPasteControl
indicates that it can be pressed since it is not grayed out but when pressed, nothing is pasted to the `UITextField... it results in the above error.
I've even tried when the target is a UIView
/UIViewController
and overriding canPasteItemProviders:
... same result.
Quitting the app and starting again produces the same results.
Note: When it's in this state, I've noticed that you can not directly paste in textfields of other apps, etc.
Any help here would be great because I would like to use this feature but it's currently making my app feel buggy. :)