Skip to content

Instantly share code, notes, and snippets.

@sonsongithub
Created May 15, 2018 11:22
Show Gist options
  • Select an option

  • Save sonsongithub/4b30c135237b7444e956b47c69349e05 to your computer and use it in GitHub Desktop.

Select an option

Save sonsongithub/4b30c135237b7444e956b47c69349e05 to your computer and use it in GitHub Desktop.
How to exclude Notes and Reminders apps from the UIActivityViewController?
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