Reputation: 4516
If I do something like download a PDF from dropbox, for example, there is an 'open in' option that lets me do things like share the file, open it in various programs, print it, etc.
Seems to be standard Apple stuff.
I am writing a CSV file in my app in Swift, and when complete, I would then like to allow the user to open this file in the same manner as above (letting them attach this to an e-mail, print, open in an app of their choice, etc).
I'm having a harder time than I thought finding the code to do something like this. Any pointers to get me started in the right direction?
Thanks!
Upvotes: 1
Views: 773
Reputation: 535989
You are describing a UIActivityViewController or, for sharing out a downloaded file, a UIDocumentInteractionController.
Upvotes: 1