title: How to implement "Options" in iOS 13 Share sheet
body: <p>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).</p>
  
  <p>How can this be implemented? I cannot find any documentation for this.</p>
  
  <p>Currently my implementation is</p>
  
  <pre class="lang-swift prettyprint-override"><code>let activityViewController = UIActivityViewController(activityItems: [myText], applicationActivities: nil)
  activityViewController.popoverPresentationController?.sourceView = self
  activityViewController.popoverPresentationController?.sourceRect = ...
  MyViewController.shared?.present(activityViewController, animated: true, completion: {})
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/SPcWF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SPcWF.jpg" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/G76jn.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G76jn.jpg" alt="enter image description here"></a></p>