BLACK FRIDAY SALE: Save big on all my Swift books and bundles! >>

Displaying UIDocumentInteractionController from SwiftUI view

Forums > SwiftUI

Hi, has anyone had any success presenting the UIDocumentInteractionController from a SwiftUI context? All I want to do it use the UIDocumentInteractionController to host a PDF on the local file system and allow the user to share. I haven't been able to find anything online and was hoping one of you has already done this successfully.

Thanks for whatever assistance you can give me!

   

Hacking with Swift is sponsored by RevenueCat

SPONSORED In-app subscriptions are a pain to implement, hard to test, and full of edge cases. RevenueCat makes it straightforward and reliable so you can get back to building your app. Oh, and it's free if your app makes less than $10k/mo.

Learn more

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.