Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nickmeehan/75b57f24d4121e63206c6f8ed67b3d52 to your computer and use it in GitHub Desktop.
Save nickmeehan/75b57f24d4121e63206c6f8ed67b3d52 to your computer and use it in GitHub Desktop.
iPad ActionSheet Presentation - SourceView and SourceRect No Permitted Arrows
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)
popoverController.permittedArrowDirections = []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment