Center the pop over arrow in the button the same way that Apple does in Mail

This commit is contained in:
Maurice Parker 2019-08-16 12:14:55 -05:00
parent 7ac18029ea
commit 2f5225163d
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
let alert = UIAlertController(title: feed.name, message: nil, preferredStyle: .actionSheet)
if let popoverController = alert.popoverPresentationController {
popoverController.sourceView = view
popoverController.sourceRect = CGRect(x: 0, y: 0, width: view.frame.size.width, height: view.frame.size.height)
popoverController.sourceRect = CGRect(x: view.frame.size.width/2, y: view.frame.size.height/2, width: 1, height: 1)
}
if let action = self.homePageAlertAction(indexPath: indexPath, completionHandler: completionHandler) {