-
-
Save ifsamaed/147f8f4237ad76fecb17d96fdd8b4db0 to your computer and use it in GitHub Desktop.
func getDirectoryPath() -> String { let paths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true) let documentsDirectory = paths[0] return documentsDirectory }
Hi the same is not working for the Word file and Excel and Ppt files can you please suggest it is working fine for PDF and Images.
This is the sample Word file I used
https://www.fda.gov/downloads/aboutfda/aboutthiswebsite/.../ucm261370.doc
it is not working with me
just send text
no files
Share any file, test and images in ios swift
https://webappcodes.com/sharing-text-or-image-with-uiactivityviewcontroller-in-swift
I guess you will have problems with other file types other than PDF due to saving everything as "documento.pdf".
Is it possible to share audio mp3 file and audio notes at the same time?
Gist to store base64 string PDF, get from directory and share it
https://gist.github.com/titopalito/6a273b6c8880140804b655a4e23187c7
Hey, good job.Can you please provide the getDirectoryPath() method ,please.Many Thanks