UIActivityViewController - Unable to exclude "Save to Files" in ExcludedActivityTypes

Viewed 1972

I am facing a situation where the "Save to Files" functionality in the UIActivityViewController breaks my navigation. That could be handled by solving the fact that I am currently unable to show two modal views on top of another.

But an even easier solution would be to simply exclude the functionality as it makes no sense for my application. Normally, I would simply exclude the UIActivityType like this:

controller.ExcludedActivityTypes = new [] { UIActivityType.AddToReadingList, UIActivityType.AssignToContact, UIActivityType.CopyToPasteboard, UIActivityType.OpenInIBooks, UIActivityType.Print, UIActivityType.SaveToCameraRoll };

But unfortunately, I cannot exclude the "Save to Files" option.

Does anyone know if this it at all possible?

1 Answers

As of iOS 14, there is still no way to prevent the "Save to Files" option from showing up, and iOS is probably not going to change this even though it was brought to there attention a long time ago.

Others have run into this issue as well.

Although you can't do this using normal means-"ExcludedActivityTypes", There might be a work around for this though

Related