mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Center the pop over arrow in the button the same way that Apple does in Mail
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user