currently i\'m running into big trouble with my ActionSheet. On iPhone it works great, but on iPad it only crashes
I create a new project with only one button
<
If someone uses sender : UITapGestureRecognizer this might be helpful.
@objc func popupSettings(sender : UITapGestureRecognizer) {
.....
if let popoverPresentationController = alert.popoverPresentationController {
popoverPresentationController.sourceView = self.view
popoverPresentationController.sourceRect = CGRect(origin: sender.location(in: self.view), size: CGSize(width: 1.0, height: 1.0))
}
self.present(alert, animated: true, completion: nil)
}