RecipeDocument.save(to: temporaryURL, for. Let recipeDocument = RecipeDocument(fileURL: temporaryURL) Let temporaryURL = URL(fileURLWithPath: NSTemporaryDirectory() "\(recipe.name).recipe") 1: If the file is pre loaded then access their file path by giving their name ex:abc. We are provide the code to set content and. here I have taken PDF file which has to share. How To Share Content With UIActivityViewController - Swift 3.0 The UIActivityViewController release iOS6 and later. Do expensive work to make the document Sometimes we need to share the local file or from url. UIActivityViewController makes sharing easy and it allows one to share many different types content including, text, images, URLs, Audio and more. Provide UIActivityViewController the URL to the file.I am using UIActivityViewController to share image. ![]() fileManager.createFile(atPath: paths as String, contents: pdfDoc as Data, attributes: nil). Swift UIActivityViewController Image
0 Comments
Leave a Reply. |