diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2022-06-03 12:02:02 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2022-06-03 12:02:02 +0200 |
| commit | feb62396e505cadd7888e97bbaedf4e9d494af26 (patch) | |
| tree | ca8ebdb76b001e02fce23509e6325415885cbac6 | |
| parent | 30297041c9af475f69df32023af89ebfa4c9d7b2 (diff) | |
| download | mullvadvpn-feb62396e505cadd7888e97bbaedf4e9d494af26.tar.xz mullvadvpn-feb62396e505cadd7888e97bbaedf4e9d494af26.zip | |
Specify preferred font
| -rw-r--r-- | ios/MullvadVPN/PreferencesViewModel.swift | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ios/MullvadVPN/PreferencesViewModel.swift b/ios/MullvadVPN/PreferencesViewModel.swift index 68036b40a1..89222eacfb 100644 --- a/ios/MullvadVPN/PreferencesViewModel.swift +++ b/ios/MullvadVPN/PreferencesViewModel.swift @@ -35,13 +35,13 @@ enum CustomDNSPrecondition { case .emptyDNSDomains: if isEditing { return NSAttributedString( - markdownString: NSLocalizedString( + string: NSLocalizedString( "CUSTOM_DNS_NO_DNS_ENTRIES_EDITING_ON_FOOTNOTE", tableName: "Preferences", value: "To enable this setting, add at least one server.", comment: "Foot note displayed if there are no DNS entries and table view is in editing mode." ), - font: preferredFont + attributes: [.font: preferredFont] ) } else { return NSAttributedString( @@ -62,7 +62,8 @@ enum CustomDNSPrecondition { tableName: "Preferences", value: "Disable all content blockers (under Preferences) to activate this setting.", comment: "Foot note displayed when custom DNS cannot be enabled, because ad/tracker/malware blockers features should be disabled first." - ) + ), + attributes: [.font: preferredFont] ) } } |
