Comment Don't have to look at the data (Score 2) 39
Looking at the API for the UIPasteboard class, I see that it has a method to test if the pasteboard contains data of a given type:
open func contains(pasteboardTypes: [String]) -> Bool
So, if the clipboard was being accessed to enable/disable a paste button, there wouldn't be a need to see the actual data, unless you were looking for a specially formatted string. But, it might be a bug or ignorance.
open func contains(pasteboardTypes: [String]) -> Bool
So, if the clipboard was being accessed to enable/disable a paste button, there wouldn't be a need to see the actual data, unless you were looking for a specially formatted string. But, it might be a bug or ignorance.