aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-11-07 18:23:12 +0530
committerRoopesh Chander <roop@roopc.net>2018-11-07 18:23:12 +0530
commit3269bb476a2818f09adf682c0235c3d5e790df6f (patch)
tree6f9e98a888d03ececab409018a7144f09c560233 /WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
parentTunnelsManager: Return a manager with no tunnels in the simulator (diff)
downloadwireguard-apple-3269bb476a2818f09adf682c0235c3d5e790df6f.tar.xz
wireguard-apple-3269bb476a2818f09adf682c0235c3d5e790df6f.zip
iPad: Set correct sourceRect for the popover anchored on the central 'Add' button
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift1
1 files changed, 1 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
index 26924fa..edecc67 100644
--- a/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
+++ b/WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift
@@ -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)
}