In iOS 13 many different system apps (for example Photos and Safari) added "Options" to their share sheet. Users can select as what they want to export (URL / Web Archive) and sometimes even options (include All Photos Data).
How can this be implemented? I cannot find any documentation for this.
Currently my implementation is
let activityViewController = UIActivityViewController(activityItems: [myText], applicationActivities: nil)
activityViewController.popoverPresentationController?.sourceView = self
activityViewController.popoverPresentationController?.sourceRect = ...
MyViewController.shared?.present(activityViewController, animated: true, completion: {})