summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2023-08-16 20:50:22 +0200
committerAndrej Mihajlov <and@mullvad.net>2023-08-17 14:04:00 +0200
commit3abe87493beab24f33e248ef66cd6585c4d1df8a (patch)
tree19f2de9f4cfa8eda6715412e8b97804442e4658d
parent2dadfaedacd4f0e6396a50d70274ba0afb1a6325 (diff)
downloadmullvadvpn-3abe87493beab24f33e248ef66cd6585c4d1df8a.tar.xz
mullvadvpn-3abe87493beab24f33e248ef66cd6585c4d1df8a.zip
Conforma to AppRouteProtocol and AppRouteGroupProtocol directly
-rw-r--r--ios/MullvadVPN/Coordinators/App/ApplicationRouter.swift7
1 files changed, 2 insertions, 5 deletions
diff --git a/ios/MullvadVPN/Coordinators/App/ApplicationRouter.swift b/ios/MullvadVPN/Coordinators/App/ApplicationRouter.swift
index 880593e2bd..2e77f3d590 100644
--- a/ios/MullvadVPN/Coordinators/App/ApplicationRouter.swift
+++ b/ios/MullvadVPN/Coordinators/App/ApplicationRouter.swift
@@ -65,7 +65,7 @@ protocol AppRouteProtocol: Equatable, Hashable {
Enum type describing groups of routes. Each group is a modal layer with horizontal navigation
inside with exception where primary navigation is a part of root controller on iPhone.
*/
-enum AppRouteGroup: Comparable, Equatable, Hashable {
+enum AppRouteGroup: AppRouteGroupProtocol {
/**
Primary horizontal navigation group.
*/
@@ -114,7 +114,7 @@ enum AppRouteGroup: Comparable, Equatable, Hashable {
/**
Enum type describing primary application routes.
*/
-enum AppRoute: Equatable, Hashable {
+enum AppRoute: AppRouteProtocol {
/**
Account route.
*/
@@ -173,9 +173,6 @@ enum AppRoute: Equatable, Hashable {
}
}
-extension AppRoute: AppRouteProtocol {}
-extension AppRouteGroup: AppRouteGroupProtocol {}
-
/**
Struct describing a routing request for presentation or dismissal.
*/