mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-02-17 05:12:02 +00:00
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
|
alert.popoverPresentationController?.barButtonItem = sender
|
||||||
} else if let sender = sender as? UIView {
|
} else if let sender = sender as? UIView {
|
||||||
alert.popoverPresentationController?.sourceView = sender
|
alert.popoverPresentationController?.sourceView = sender
|
||||||
|
alert.popoverPresentationController?.sourceRect = sender.bounds
|
||||||
}
|
}
|
||||||
self.present(alert, animated: true, completion: nil)
|
self.present(alert, animated: true, completion: nil)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user