title: Does Mac Catalyst supports UIActivityViewController?
body: <p>I am trying to port over our app to Mac. But it seems that what works for iOS/iPadOS does not show up on Mac app. Nothing popups at all.</p>
  
  <pre><code>let activityController = UIActivityViewController(activityItems:items, applicationActivities:nil)
  
  activityController.setValue(NSLocalizedString("App Name", comment:""), forKey:"subject")
  activityController.modalPresentationStyle = .popover
  
  let popoverController = activityController.popoverPresentationController
  
  if popoverController != nil {
        popoverController!.barButtonItem = sender
        popoverController!.permittedArrowDirections = .down
  }
  
  self.present(activityController, animated:true, completion:nil)
  </code></pre>
  
  <p>Saw an error message that might be related:</p>
  
  <pre><code>setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
  </code></pre>
  
  <p>I have tried various settings in sandbox with no good result.</p>
  
  <p>PS: Got it working after removing this line: activityController.setValue(NSLocalizedString("App Name", comment:""), forKey:"subject")</p>
  
  <p>What option is shown also dependent. For example, if have a string and an image in items, then Save to Photos will not be shown.</p>