@Viditb @jefframes I noticed some cases where users are getting an error - PBErrorDomain Code=13 "Operation not authorized." - when pasting from UIPasteControl. Looks like it's coming back in the completion handler to loadObject(ofClass: String.self).
Have you guys seen this at all with your users? I figured UIPasteControl would handle anything like this internally, but I guess not?
@chrisvasselli i never shipped the app where I used this. But it does sound familiar from when I was testing. I’ll take a peek at it this weekend and see if it refreshes my memory. There were definitely things that felt flaky but I may have solved it 🤔
@chrisvasselli Nothing stuck out to me, and my implementation is basically the same as yours for this method. I assume this isn't what happens if a user on iOS16 denies the app access to the pasteboard? That's my only guess.
@f Thanks. Yeah, makes me wonder if maybe the "operation not permitted" error message is a red herring, and there's something else going on not related to permissions?