From 2f5225163ddc2e3b4dee52baa24b4c8737bfbe87 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 16 Aug 2019 12:14:55 -0500 Subject: [PATCH] Center the pop over arrow in the button the same way that Apple does in Mail --- iOS/MasterFeed/MasterFeedViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/MasterFeed/MasterFeedViewController.swift b/iOS/MasterFeed/MasterFeedViewController.swift index 08a787a9f..41391e394 100644 --- a/iOS/MasterFeed/MasterFeedViewController.swift +++ b/iOS/MasterFeed/MasterFeedViewController.swift @@ -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) {