diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-12-05 13:19:39 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-12-05 16:05:10 +0100 |
| commit | bfcf230077617d2dbf2fe968b1547e58c769e059 (patch) | |
| tree | 9d283ebc7978e246384f4573f8d176b37f7920ef | |
| parent | c9cdf33fd52132c8303cf4d3c714908540fed48b (diff) | |
| download | mullvadvpn-bfcf230077617d2dbf2fe968b1547e58c769e059.tar.xz mullvadvpn-bfcf230077617d2dbf2fe968b1547e58c769e059.zip | |
Use enum for SegueIdentifier
| -rw-r--r-- | ios/MullvadVPN/SegueIdentifier.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ios/MullvadVPN/SegueIdentifier.swift b/ios/MullvadVPN/SegueIdentifier.swift index d6cea1659b..f1d9c0c71b 100644 --- a/ios/MullvadVPN/SegueIdentifier.swift +++ b/ios/MullvadVPN/SegueIdentifier.swift @@ -9,7 +9,9 @@ import UIKit // A phantom struct holding the storyboard segue identifiers for each view controller -struct SegueIdentifier { +enum SegueIdentifier {} + +extension SegueIdentifier { enum Root: String, SegueConvertible { case showSettings = "ShowSettings" @@ -26,8 +28,6 @@ struct SegueIdentifier { enum Account: String, SegueConvertible { case logout = "Logout" } - - private init() {} } protocol SegueConvertible: RawRepresentable { |
