I am using a UIActivityViewController
to share a invitation text to my app. I am trying to exclude all activities with the action category besides Notes App. I am unable to exclude "Save to Files" option.
- Is there any way to exclude the view with action activities directly?
How can i exclude "Save to Files" activity option?
@IBAction func inviteAction(_ sender: UIBarButtonItem) { let inviteText = "..." let actCont = UIActivityViewController(activityItems: [inviteText], applicationActivities: []) //Exclude action activities types from the list actCont.excludedActivityTypes = [ .print, .assignToContact, .saveToCameraRoll, .copyToPasteboard, .addToReadingList, UIActivityType(rawValue: "com.apple.mobilenotes.SharingExtension"), UIActivityType(rawValue: "com.apple.CloudDocsUI.AddToiCloudDrive")] self.present(actCont, animated: true, completion: nil) }