Hmm, ok! Then maybe it's not a UIActivityViewController that is being used? I realise this image better shows what I want to achieve. The "Options" button (marked in the image with the Swedish translation "Alternativ") is also present when sharing photos, as I mentioned earlier. Just thought that there would be some built-in functionality to include it from the UIAcitvityViewController.
Here's my current code for the UIActivityViewController:
// Init Activity view controller.
let activity = UIActivityViewController(
activityItems: [path, pdfData],
applicationActivities: nil
)
//Show the Activity view controller.
self.progressHUD.hide()
activity.popoverPresentationController?.barButtonItem = sender
activity.excludedActivityTypes = [.addToReadingList, .assignToContact, .copyToPasteboard, .markupAsPDF, .message, .openInIBooks, .postToFlickr, .postToTencentWeibo, .postToTwitter, .postToFacebook, .postToVimeo, .postToWeibo, .print, .saveToCameraRoll]
self.present(activity, animated: true, completion: nil)