-2

I can't find what this share popup would be called or if it is even a native iOS object. So I'm asking what would this popup be called if I can find it in apple's documentation. And if I can't, how can I recreate it?

share popup

Caleb Kleveter
  • 11,170
  • 8
  • 62
  • 92
  • FYI - In the future, if you wish to know about what controls/views are available, consult the [iOS Human Interface Guidelines](https://developer.apple.com/ios/human-interface-guidelines/overview/design-principles/). It covers all of this stuff. – rmaddy Apr 12 '17 at 21:38
  • Great thank you so much – anthonyp99 Apr 13 '17 at 15:10

3 Answers3

3

Yes this is native iOS Popup and called UIActivityViewController, for more details you can refer to below links...

https://developer.apple.com/reference/uikit/uiactivityviewcontroller http://nshipster.com/uiactivityviewcontroller/

Abhishek
  • 509
  • 3
  • 12
2

You're after the UIActivityViewController.

Here is a link to the docs.

Joshua Kaden
  • 1,210
  • 11
  • 16
0

This "popup" is indeed natively integrated into iOS. It's called UIActivityViewController.
Here's code to create one:

let stuffToBeShared = [""]
let activityVC = UIActivityViewController(activityItems: stuffToBeShared, applicationActivities: nil)
activityVC.popoverPresentationController?.sourceView = self.view
self.present(activityVC, animated: true, completion: nil)

Check this answer for more detailed information.

Community
  • 1
  • 1
LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174