iosswiftactionios14uidocumentinteractioncontroller

iOS14 missing buttons in "Save to Files" menu


I spot that my code behaves differently on iOS13 / iOS14. I am downloading pdf file and showing it with UIDocumentInteractionController

     DispatchQueue.main.async {
        let controladorDoc = UIDocumentInteractionController(url: PdfUrl)
        controladorDoc.delegate = self
        controladorDoc.presentPreview(animated: true)
    }

after pdf is shown I am clicking "Save" button. Here is the difference:

iOS13

iOS14

Save and Cancel buttons are missing. How to fix that ? I was thinking about overloading buttons in actions menu but I didn't find how to make that.


Solution

  • If your buttons are working but are invisible it's very likely that you are using UIAppearance somewhere and that's causing your buttons to become the same color as the navigation bar.