Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nickmeehan/c918a7fd96c81af42c9dae2762c141bf to your computer and use it in GitHub Desktop.
Save nickmeehan/c918a7fd96c81af42c9dae2762c141bf to your computer and use it in GitHub Desktop.
iPad ActionSheet Presentation - SourceView and SourceRect
if let popoverController = alertController.popoverPresentationController {
popoverController.sourceView = self.view
popoverController.sourceRect = CGRect(x: self.view.bounds.midX, y: self.view.bounds.midY, width: 0, height: 0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment