-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
406 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
ios/MullvadVPN/View controllers/Settings/DAITASettingsPromptItem.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// | ||
// DAITASettingsPromptItem.swift | ||
// MullvadVPN | ||
// | ||
// Created by Mojgan on 2024-09-16. | ||
// Copyright © 2024 Mullvad VPN AB. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
enum DAITASettingsPromptItem: CustomStringConvertible { | ||
case daitaSettingIncompatibleWithSinglehop(Setting) | ||
case daitaSettingIncompatibleWithMultihop(Setting) | ||
|
||
enum Setting { | ||
case daita | ||
case directOnly | ||
} | ||
|
||
var title: String { | ||
switch self { | ||
case let .daitaSettingIncompatibleWithSinglehop(setting), let .daitaSettingIncompatibleWithMultihop(setting): | ||
switch setting { | ||
case .daita: | ||
"DAITA" | ||
case .directOnly: | ||
"direct only" | ||
} | ||
} | ||
} | ||
|
||
var description: String { | ||
switch self { | ||
case .daitaSettingIncompatibleWithSinglehop: | ||
""" | ||
Not all our servers are DAITA-enabled. In order to use the internet, you might have to \ | ||
select a new location after enabling. | ||
""" | ||
case .daitaSettingIncompatibleWithMultihop: | ||
""" | ||
Not all our servers are DAITA-enabled. In order to use the internet, you might have to \ | ||
select a new entry location after enabling. | ||
""" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.