Is it possible to add a custom pattern to UIPasteboardDetectionPattern, and support regular Expressions detecting.
Post
Replies
Boosts
Views
Activity
I can not the find the documentation for new detection API: detectPatterns(for:completionHandler:) and detectPatterns(for:inItemSet:completionHandler:)。How to get the detail documentation and demo?
Thanks.
Thanks for your advice.
However, I found that the result from detectPatterns(for:completionHandler:) does not match text I copied.
It is a string like "com.apple.uikit.detected-type.address-bar-search".
I want to read some plain text from the pasteboard without notification.
Except patterns .probableWebURL and .probableWebSearch, will another pattern work for plain text?
Email:****.*@*********.com
Thanks.