ios – QLPreviewController – Hide ‘Save to Files’ option


I am trying to open a PDF from the app in QLPreviewController. Following is the code

    func previewController(_ controller: QLPreviewController, previewItemAt index: Int) -> QLPreviewItem {
        return getFileURLFromFileModel()! as QLPreviewItem
    }
    
    func displayPDFForAnnotation(){
        let previewController = QLPreviewController()
        previewController.dataSource = self
        self.present(previewController, animated: true)
    }
    
    ```
Its behaving as expected. Then if I add annotation, that is, if I edit the PDF and then press the "Done" button, then its asking to "Save to Files"

 Here is the image for reference: https://i.stack.imgur.com/cFeoT.jpg

I don't want the option of "Save to Files" as it would be saved within the app on the press of "Done" button itself. How can I hide the "Save to Files" option from the "Done" button menu?


 

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img