2 ms·
1. It does. numberOfItems will tell you how many items are on the pasteboard. 2. It does. contains(pasteboardTypes: [String]) will tell you whether the pastebo
by jshier 6y ago
1. It does. numberOfItems will tell you how many items are on the pasteboard.
2. It does. contains(pasteboardTypes: [String]) will tell you whether the pasteboard contains items of particular types.
3. Okay, but that's a huge shift from the status quo and breaks quite a few app workflows, especially conveniences the user expects.
4. Yes, this would be the biggest improvement to fix the disruption caused by 3.
Edit: But even with 4, automatic access would still trigger the new iOS 14 warning, unless Apple turns that off if you've queried for a particular pattern. I don't see that happening. I'm guessing devs will just provide their own approval for this feature so the users aren't surprised when they see the pasteboard access warning.
- georgespencer 6y agoSorry if I wasn't clear: this should be the ONLY way clipboard contents can be accessed. Saying "it does" work like this tells half the story: developers can do these sensible things to check out the clipboard in a privacy-conscious way, but if apps can choose to access it without doing those things, it's not working as a user might expect it to. Can you think of any conveniences which are broken by step 3? It's probably just my basic workflows, but I _never_ see any prefetching of clipboard contents with the exception of URLs.