iPad: Set correct sourceRect for the popover anchored on the central 'Add' button
This commit is contained in:
parent
d477b132e4
commit
6e142cd924
|
@ -113,6 +113,7 @@ class TunnelsListTableViewController: UIViewController {
|
|||
alert.popoverPresentationController?.barButtonItem = sender
|
||||
} else if let sender = sender as? UIView {
|
||||
alert.popoverPresentationController?.sourceView = sender
|
||||
alert.popoverPresentationController?.sourceRect = sender.bounds
|
||||
}
|
||||
self.present(alert, animated: true, completion: nil)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue