Here's my list:
let vc = UIActivityViewController(activityItems: [shareImage], applicationActivities: [])
vc.excludedActivityTypes = [
//UIActivity.ActivityType.postToTwitter,
//UIActivity.ActivityType.postToFacebook,
UIActivity.ActivityType.postToWeibo,
//UIActivity.ActivityType.message,
//UIActivity.ActivityType.mail,
//UIActivity.ActivityType.print,
//UIActivity.ActivityType.copyToPasteboard,
UIActivity.ActivityType.assignToContact,
//UIActivity.ActivityType.saveToCameraRoll,
UIActivity.ActivityType.addToReadingList,
//UIActivity.ActivityType.PostToFlickr,
UIActivity.ActivityType.postToVimeo,
UIActivity.ActivityType.postToTencentWeibo,
//UIActivity.ActivityType.airDrop,
UIActivity.ActivityType.openInIBooks,
UIActivity.ActivityType.markupAsPDF
]
Sorry for the brain dump, but in pretty much any version of Xcode (what follows is from 12.3) you can drill into things, and UIActivity.ActivityType
yields:
extension UIActivity.ActivityType {
@available(iOS 6.0, *)
public static let postToFacebook: UIActivity.ActivityType
@available(iOS 6.0, *)
public static let postToTwitter: UIActivity.ActivityType
@available(iOS 6.0, *)
public static let postToWeibo: UIActivity.ActivityType
@available(iOS 6.0, *)
public static let message: UIActivity.ActivityType
@available(iOS 6.0, *)
public static let mail: UIActivity.ActivityType
@available(iOS 6.0, *)
public static let print: UIActivity.ActivityType
@available(iOS 6.0, *)
public static let copyToPasteboard: UIActivity.ActivityType
@available(iOS 6.0, *)
public static let assignToContact: UIActivity.ActivityType
@available(iOS 6.0, *)
public static let saveToCameraRoll: UIActivity.ActivityType
@available(iOS 7.0, *)
public static let addToReadingList: UIActivity.ActivityType
@available(iOS 7.0, *)
public static let postToFlickr: UIActivity.ActivityType
@available(iOS 7.0, *)
public static let postToVimeo: UIActivity.ActivityType
@available(iOS 7.0, *)
public static let postToTencentWeibo: UIActivity.ActivityType
@available(iOS 7.0, *)
public static let airDrop: UIActivity.ActivityType
@available(iOS 9.0, *)
public static let openInIBooks: UIActivity.ActivityType
@available(iOS 11.0, *)
public static let markupAsPDF: UIActivity.ActivityType
}
I think that's what you want. As always, look for changes with an iOS release. (I tend to check every iOS release, but you never know.) Also, keep in mind that customizations can be done with share sheets.
Finally, note that it is a blacklist. That's how it is.
EDIT:
I was able to bring up my list because this is how it's coded in my apps. It's much easier to keep a FULL list of defined types, including those that are not blacklisted for future purposes!