@@ -50,14 +50,21 @@ struct SettingsInfoView: View {
50
50
. hidden ( )
51
51
}
52
52
53
+ private func bodyText( _ page: SettingsInfoViewModelPage ) -> some View {
54
+ ( try ? AttributedString (
55
+ markdown: page. body,
56
+ options: AttributedString . MarkdownParsingOptions ( interpretedSyntax: . inlineOnlyPreservingWhitespace)
57
+ ) ) . map ( Text . init) ?? Text ( page. body)
58
+ }
59
+
53
60
private func contentView( ) -> some View {
54
61
ForEach ( viewModel. pages, id: \. self) { page in
55
62
VStack {
56
63
VStack ( alignment: . leading, spacing: 16 ) {
57
64
Image ( page. image)
58
65
. resizable ( )
59
66
. aspectRatio ( contentMode: . fit)
60
- Text ( page. body )
67
+ bodyText ( page)
61
68
. font ( . subheadline)
62
69
. opacity ( 0.6 )
63
70
}
@@ -130,15 +137,14 @@ struct SettingsInfoView: View {
130
137
" SETTINGS_INFO_DAITA_PAGE_1 " ,
131
138
tableName: " Settings " ,
132
139
value: """
140
+ **Attention: This increases network traffic and will also negatively affect speed, latency, \
141
+ and battery usage. Use with caution on limited plans.**
142
+
133
143
DAITA (Defense against AI-guided Traffic Analysis) hides patterns in \
134
144
your encrypted VPN traffic.
135
145
136
146
By using sophisticated AI it’s possible to analyze the traffic of data \
137
147
packets going in and out of your device (even if the traffic is encrypted).
138
-
139
- If an observer monitors these data packets, DAITA makes it significantly \
140
- harder for them to identify which websites you are visiting or with whom \
141
- you are communicating.
142
148
""" ,
143
149
comment: " "
144
150
) ,
@@ -149,14 +155,15 @@ struct SettingsInfoView: View {
149
155
" SETTINGS_INFO_DAITA_PAGE_2 " ,
150
156
tableName: " Settings " ,
151
157
value: """
158
+ If an observer monitors these data packets, DAITA makes it significantly \
159
+ harder for them to identify which websites you are visiting or with whom \
160
+ you are communicating.
161
+
152
162
DAITA does this by carefully adding network noise and making all network \
153
163
packets the same size.
154
164
155
165
Not all our servers are DAITA-enabled. Therefore, we use multihop \
156
166
automatically to enable DAITA with any server.
157
-
158
- Attention: Be cautious if you have a limited data plan as this feature \
159
- will increase your network traffic.
160
167
""" ,
161
168
comment: " "
162
169
) ,
0 commit comments