Created
May 15, 2018 11:22
-
-
Save sonsongithub/4b30c135237b7444e956b47c69349e05 to your computer and use it in GitHub Desktop.
How to exclude Notes and Reminders apps from the UIActivityViewController?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let activityController = UIActivityViewController(activityItems: sharingItems, applicationActivities: nil) | |
| activityController.excludedActivityTypes = [ | |
| UIActivityType.assignToContact, | |
| UIActivityType.print, | |
| UIActivityType.addToReadingList, | |
| UIActivityType.saveToCameraRoll, | |
| UIActivityType.openInIBooks, | |
| UIActivityType(rawValue: "com.apple.reminders.RemindersEditorExtension"), | |
| UIActivityType(rawValue: "com.apple.mobilenotes.SharingExtension"), | |
| ] | |
| present(activityController, animated: true, completion: nil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment