-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update logic for showing DAITA filter pill
- Loading branch information
Showing
6 changed files
with
104 additions
and
21 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
32 changes: 32 additions & 0 deletions
32
ios/MullvadVPN/View controllers/Settings/SettingsPromptAlertItem.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,32 @@ | ||
// | ||
// SettingsPromptAlertItem.swift | ||
// MullvadVPN | ||
// | ||
// Created by Mojgan on 2024-09-16. | ||
// Copyright © 2024 Mullvad VPN AB. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
enum DAITASettingsPromptItem: CustomStringConvertible { | ||
case daitaSettingIncompatibleWithSinglehop | ||
case daitaSettingIncompatibleWithMultihop | ||
|
||
var description: String { | ||
switch self { | ||
case .daitaSettingIncompatibleWithSinglehop: | ||
""" | ||
DAITA isn’t available on the current server. After enabling, please go to the Switch \ | ||
location view and select a location that supports DAITA. | ||
Attention: Since this increases your total network traffic, be cautious if you have a \ | ||
limited data plan. It can also negatively impact your network speed and battery usage. | ||
""" | ||
case .daitaSettingIncompatibleWithMultihop: | ||
""" | ||
DAITA isn’t available on the current entry server. After enabling, please go to the Switch \ | ||
location view and select an entry location that supports DAITA. | ||
Attention: Since this increases your total network traffic, be cautious if you have a \ | ||
limited data plan. It can also negatively impact your network speed and battery usage. | ||
""" | ||
} | ||
} | ||
} |