Created
May 26, 2021 07:17
-
-
Save iosdevie/b04ceee7c9692c152ab344299216a057 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let popoverPresentationController = actionSheet.popoverPresentationController { | |
popoverPresentationController.sourceView = self.view | |
popoverPresentationController.sourceRect = CGRect(x: self.view.bounds.midX, y: self.view.bounds.midY, width: 0, height: 0) | |
popoverPresentationController.permittedArrowDirections = [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment