Open jamesrv43 opened 5 years ago
What is the bug?
crash?
unexpected behavior?
something else?
If it crashes try:
func constrain(_ sender: UIBarButtonItem) {
let actionSheet = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
if let popoverController = actionSheet.popoverPresentationController {
///popoverController.barButtonItem = sender
popoverController.popoverPresentationController?.sourceView = sender
popoverController.permittedArrowDirections = .down
}
Disclaimer: this code is untested, I’m browsing from my phone, but maybe it can help.
fix bug in ipad
PhotoEditor+Controls.swift line at 88
CropViewController.swift line at 148