Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make DAITA warning more prominent (also bold) #7638

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,14 @@ extension SettingsDAITAView {
"SETTINGS_INFO_DAITA_PAGE_1",
tableName: "Settings",
value: """
**Attention: This increases network traffic and will also negatively affect speed, latency, \
and battery usage. Use with caution on limited plans.**

DAITA (Defense against AI-guided Traffic Analysis) hides patterns in \
your encrypted VPN traffic.

By using sophisticated AI it’s possible to analyze the traffic of data \
packets going in and out of your device (even if the traffic is encrypted).

If an observer monitors these data packets, DAITA makes it significantly \
harder for them to identify which websites you are visiting or with whom \
you are communicating.
""",
comment: ""
),
Expand All @@ -123,14 +122,16 @@ extension SettingsDAITAView {
"SETTINGS_INFO_DAITA_PAGE_2",
tableName: "Settings",
value: """
If an observer monitors these data packets, DAITA makes it significantly \
harder for them to identify which websites you are visiting or with whom \
you are communicating.

DAITA does this by carefully adding network noise and making all network \
packets the same size.

Not all our servers are DAITA-enabled. Therefore, we use multihop \
automatically to enable DAITA with any server.

Attention: Be cautious if you have a limited data plan as this feature \
will increase your network traffic.
""",
comment: ""
),
Expand Down
23 changes: 15 additions & 8 deletions ios/MullvadVPN/Coordinators/Settings/Views/SettingsInfoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,21 @@ struct SettingsInfoView: View {
.hidden()
}

private func bodyText(_ page: SettingsInfoViewModelPage) -> some View {
(try? AttributedString(
markdown: page.body,
options: AttributedString.MarkdownParsingOptions(interpretedSyntax: .inlineOnlyPreservingWhitespace)
)).map(Text.init) ?? Text(page.body)
}

private func contentView() -> some View {
ForEach(viewModel.pages, id: \.self) { page in
VStack {
VStack(alignment: .leading, spacing: 16) {
Image(page.image)
.resizable()
.aspectRatio(contentMode: .fit)
Text(page.body)
bodyText(page)
.font(.subheadline)
.opacity(0.6)
}
Expand Down Expand Up @@ -130,15 +137,14 @@ struct SettingsInfoView: View {
"SETTINGS_INFO_DAITA_PAGE_1",
tableName: "Settings",
value: """
**Attention: This increases network traffic and will also negatively affect speed, latency, \
and battery usage. Use with caution on limited plans.**

DAITA (Defense against AI-guided Traffic Analysis) hides patterns in \
your encrypted VPN traffic.

By using sophisticated AI it’s possible to analyze the traffic of data \
packets going in and out of your device (even if the traffic is encrypted).

If an observer monitors these data packets, DAITA makes it significantly \
harder for them to identify which websites you are visiting or with whom \
you are communicating.
""",
comment: ""
),
Expand All @@ -149,14 +155,15 @@ struct SettingsInfoView: View {
"SETTINGS_INFO_DAITA_PAGE_2",
tableName: "Settings",
value: """
If an observer monitors these data packets, DAITA makes it significantly \
harder for them to identify which websites you are visiting or with whom \
you are communicating.

DAITA does this by carefully adding network noise and making all network \
packets the same size.

Not all our servers are DAITA-enabled. Therefore, we use multihop \
automatically to enable DAITA with any server.

Attention: Be cautious if you have a limited data plan as this feature \
will increase your network traffic.
""",
comment: ""
),
Expand Down
Loading