268 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
56
views
Cannot access pasteboard from App Intents
I created a shortcut for my app using App Intents to access UIPasteboard and save the contents to the app. This works well in the simulator but always returns "No data available in the pasteboard....
1
vote
1
answer
157
views
UIPasteControl Not Firing
I have an iOS app where I'm trying to paste something previously copied to the user's UIPasteboard. I came across the UIPasteControl as an option for a user to tap to silently paste without having the ...
2
votes
0
answers
167
views
How to copy to a user's clipboard from an iOS home screen widget button tap using UIPasteboard.general.string?
I am trying to copy to a user's clipboard from an iOS home screen widget button tap using UIPasteboard.general.string.
It works perfectly in the simulator (copies text to user's clipboard), but does ...
1
vote
1
answer
81
views
How to use iOS UIPasteboard to copy a data file from iOS Simulator to Mac Finder?
Need easy way for users to export a data file from iOS Simulator to use on their Mac file system.
Drag and drop from Mac Finder to iOS Simulator Files app works but there isn't a files app drag and ...
1
vote
0
answers
71
views
iOS Widget URL Handling Not Working on Real Device
iOS Widget URL Handling Not Working on Real Device
Problem
I've developed an iOS app with a widget for a clipboard manager. The widget works fine in the simulator, but on a real device, the URL ...
3
votes
0
answers
486
views
Pasteboard com.apple.UIKit.pboard.general is not available at this time
I am developing a keyboard extension app and it has a clipboard feature. The app is being developed in SwiftUI and displayed in the KeyboardViewController using a HostingController. So when the ...
2
votes
1
answer
2k
views
PasteButton shows "Allow Paste" prompt
I added a PasteButton to my SwiftUI app, but it still shows the "Allow Paste" prompt when tapped. After fighting this problem for half a day without success, I created a new SwiftUI app in ...
5
votes
1
answer
2k
views
Disable copy-paste permission in iOS 16.1
As you may know, iOS 16 introduced a new feature such that when your app uses UIPasteboard, it keeps asking for permission every time. This annoying alert is gone after 16.1 as I heard, but I still ...
0
votes
1
answer
824
views
How can you use iOS 16's UIPasteControl with React Native?
iOS 16 introduces UIPasteControl as a way of avoiding the paste permission dialog appearing when an app programmatically accesses the clipboard contents.
To enable UIPasteControl, its target needs to ...
3
votes
0
answers
583
views
Sharing Photo and Copying String to Instagram Stories
I have an app that allows a user to share to an image to IG stories. My problem is, I can't seem to simultaneously copy a url string from which a user can then paste as an IG Link sticker.
I couldn't ...
1
vote
1
answer
814
views
SwiftUI UIPasteboard is cleared when posting to instagram-stories
I'm posting an Instagram story from my app and it works perfectly. But when I added a UIPasteboard string value where I store my URL, it's being cleared when I paste it in instagram link. What I ...
1
vote
1
answer
448
views
UIViewController intercept copy/paste actions of UITextView
I have a UITextView inside a UIViewController. I want to intercept (or override) cut/copy/paste and other UIEdit actions in UITextView in my UIViewController. I tried the following code in my ...
1
vote
1
answer
270
views
UIPasteboard showing Paste keyword in English language
In my app when I tried to open UIPasteboard after copying text it's showing Paste text in the English language. While other option texts are in Japanese!
It's not same behavior for all device. In some ...
0
votes
1
answer
119
views
Recommended Way to Temporarily Store Text and Cursor Position for UITextView When Backgrounded
I have a UITextView with an attributedString for the text. When I either close and re-open the view or background the app and come back, the text in the textView disappears. I want to be able to ...
1
vote
1
answer
1k
views
UIPasteboard setItems: options API, UTType.plainText: swift usage
I'm trying to use the following API in Swift: UIPasteboard: setItems(_:options:)
, as suggested in this answer:
UIPasteboard.general.setItems([[kUTTypeUTF8PlainText as String: text]], options: [....