GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

Share Bug: First share attempt shows a blank sheet.

Forums > SwiftUI

I am implementing a screenshot share in my app. Doing some debugging, if I use the share mechanism to share text directly it works first time. However if I try to share the same text via a variable it fails on the first share attempt but then works on all subsequent shares. I've posted a video to demo what happens.

https://youtu.be/ZDPBLljMd9c

   

Hacking with Swift is sponsored by Alex.

SPONSORED Alex is the iOS & Mac developer’s ultimate AI assistant. It integrates with Xcode, offering a best-in-class Swift coding agent. Generate modern SwiftUI from images. Fast-apply suggestions from Claude 3.5 Sonnet, o3-mini, and DeepSeek R1. Autofix Swift 6 errors and warnings. And so much more. Start your 7-day free trial today!

Try for free!

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.