So, I created a basic activity view controller with the most needed parameters and it gets called, as expected, BUT!
After presenting you can't tap on any item, except 'Cancel' on the bottom.
Looked around on several sites, in debug mode, etc, no results found yet.
Implementation:
func shareViaOther() {
let body = Constants.ShareContent.title + "\n\n" + Constants.ShareContent.body
let image = UIImage(named: Constants.ImageNames.appIcon)!
let url = Constants.ShareContent.url!
let items: [Any] = [body, image, url]
let activityVC = UIActivityViewController(activityItems: items, applicationActivities: nil)
activityVC.popoverPresentationController?.sourceView = view
activityVC.excludedActivityTypes = [
UIActivityType.postToWeibo,
UIActivityType.postToTencentWeibo,
UIActivityType.postToVimeo,
UIActivityType.postToFlickr,
UIActivityType.saveToCameraRoll,
UIActivityType.assignToContact,
UIActivityType.print,
UIActivityType.copyToPasteboard
]
present(activityVC, animated: true, completion: nil)
}
Disclaimer: Seems like cleaning the project, reset the phone and rebuild did not make any difference..
Any help would be highly appreciated!!