summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Containers/Root/RootContainerViewController.swift
diff options
context:
space:
mode:
authorBug Magnet <marco.nikic@mullvad.net>2024-10-01 14:08:17 +0200
committerBug Magnet <marco.nikic@mullvad.net>2024-10-02 13:54:05 +0200
commit88a6f2d0fe49393f6eecb044ca4041f3e065fdb8 (patch)
tree078de346a531065a1b2d4811a7a463318824810b /ios/MullvadVPN/Containers/Root/RootContainerViewController.swift
parent09d2b8ee10c7b93035503c417a479b3bdcfb13e1 (diff)
downloadmullvadvpn-88a6f2d0fe49393f6eecb044ca4041f3e065fdb8.tar.xz
mullvadvpn-88a6f2d0fe49393f6eecb044ca4041f3e065fdb8.zip
Fix filters in LocationCoordinator
Diffstat (limited to 'ios/MullvadVPN/Containers/Root/RootContainerViewController.swift')
-rw-r--r--ios/MullvadVPN/Containers/Root/RootContainerViewController.swift34
1 files changed, 0 insertions, 34 deletions
diff --git a/ios/MullvadVPN/Containers/Root/RootContainerViewController.swift b/ios/MullvadVPN/Containers/Root/RootContainerViewController.swift
index 0d005d66b1..2c405395bc 100644
--- a/ios/MullvadVPN/Containers/Root/RootContainerViewController.swift
+++ b/ios/MullvadVPN/Containers/Root/RootContainerViewController.swift
@@ -308,40 +308,6 @@ class RootContainerViewController: UIViewController {
)
}
- /// Add account and settings bar buttons into the presentation container to make them accessible even
- /// when the root container is covered with a modal.
- func addTrailingButtonsToPresentationContainer(_ presentationContainer: UIView) {
- let accountButton = getPresentationContainerAccountButton()
- let settingsButton = getPresentationContainerSettingsButton()
-
- presentationContainerAccountButton = accountButton
- presentationContainerSettingsButton = settingsButton
-
- // Hide the account button inside the header bar to avoid color blending issues
- headerBarView.accountButton.alpha = 0
- headerBarView.settingsButton.alpha = 0
-
- presentationContainer.addConstrainedSubviews([accountButton, settingsButton]) {
- accountButton.centerXAnchor
- .constraint(equalTo: headerBarView.accountButton.centerXAnchor)
- accountButton.centerYAnchor
- .constraint(equalTo: headerBarView.accountButton.centerYAnchor)
-
- settingsButton.centerXAnchor
- .constraint(equalTo: headerBarView.settingsButton.centerXAnchor)
- settingsButton.centerYAnchor
- .constraint(equalTo: headerBarView.settingsButton.centerYAnchor)
- }
- }
-
- func removeTrailingButtonsFromPresentationContainer() {
- presentationContainerAccountButton?.removeFromSuperview()
- presentationContainerSettingsButton?.removeFromSuperview()
-
- headerBarView.accountButton.alpha = 1
- headerBarView.settingsButton.alpha = 1
- }
-
func setOverrideHeaderBarHidden(_ isHidden: Bool?, animated: Bool) {
overrideHeaderBarHidden = isHidden