summaryrefslogtreecommitdiffhomepage
path: root/ios/MullvadVPN/Containers/Root/HeaderBarButton.swift
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2023-03-07 15:16:59 +0100
committerAndrej Mihajlov <and@mullvad.net>2023-03-22 16:42:30 +0100
commita51757ce590b5063c1c8099b3ed8ea0fa8b3bcdb (patch)
tree85935823680100affad563ebeca45a07a71938ee /ios/MullvadVPN/Containers/Root/HeaderBarButton.swift
parent1c2c6f58dc1d175d00bea8037ca989ca80b1fcb8 (diff)
downloadmullvadvpn-a51757ce590b5063c1c8099b3ed8ea0fa8b3bcdb.tar.xz
mullvadvpn-a51757ce590b5063c1c8099b3ed8ea0fa8b3bcdb.zip
Add coordinators and app router
Fixes IOS-10
Diffstat (limited to 'ios/MullvadVPN/Containers/Root/HeaderBarButton.swift')
-rw-r--r--ios/MullvadVPN/Containers/Root/HeaderBarButton.swift15
1 files changed, 15 insertions, 0 deletions
diff --git a/ios/MullvadVPN/Containers/Root/HeaderBarButton.swift b/ios/MullvadVPN/Containers/Root/HeaderBarButton.swift
new file mode 100644
index 0000000000..df3858d42c
--- /dev/null
+++ b/ios/MullvadVPN/Containers/Root/HeaderBarButton.swift
@@ -0,0 +1,15 @@
+//
+// HeaderBarButton.swift
+// MullvadVPN
+//
+// Created by pronebird on 15/11/2021.
+// Copyright © 2021 Mullvad VPN AB. All rights reserved.
+//
+
+import UIKit
+
+class HeaderBarButton: UIButton {
+ override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
+ return bounds.insetBy(dx: -10, dy: -10).contains(point)
+ }
+}