same for me
Post
Replies
Boosts
Views
Activity
Same here
I have the same issue. Reinstalling Xcode, creating and uploading a new build with that did not fix it.
I am also interested in an answer to this question. Did you find a solution?
Hi, am also very interested in this question. If you have an answer to this, please let me know. Thanks.
Well, it seems like this issue is fixed with iOS 14. Tested it with the iOS 14 beta 4 and now the preview image is displayed correctly while dragging.
Thanks for your comment. The loadObject function of the NSItemProvider returns a Progress element which you can use to display a progress to the user while the item is loaded. I skipped that in this example.
Your code crashes, because you need to declare your variable as a @State var, when the variable affects swiftui code and you want to change it in runtime.
Coming back to my initial question, do you also have the issue, that you see the image if you drag running the simulator, but when running on a real device, you only see a transparent rect as preview image?
Hi Jaanus, Im struggling with the same issue, no matter how i insert my wrapped QLPreview inside my swiftui contentview it only shows the image or pdf document. The title, share button, etc. is missing. I could not find a solution yet, hopefully someone else did.