summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJon Petersson <jon.petersson@kvadrat.se>2024-05-21 13:15:23 +0200
committerJon Petersson <jon.petersson@kvadrat.se>2024-05-21 13:15:23 +0200
commit231177963a436b7d4969f6648bce2369fc6e15bc (patch)
tree6cbd42ecfde7845ec5cd30a425a32ee47507a56c
parent22d92142b5ca3a0466b22f77743471f928e52524 (diff)
downloadmullvadvpn-231177963a436b7d4969f6648bce2369fc6e15bc.tar.xz
mullvadvpn-231177963a436b7d4969f6648bce2369fc6e15bc.zip
Make vpn settings page not crash in release mode
-rw-r--r--ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift6
1 files changed, 6 insertions, 0 deletions
diff --git a/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift b/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift
index 9a05dc04b0..4525b7d886 100644
--- a/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift
+++ b/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift
@@ -383,7 +383,13 @@ final class VPNSettingsDataSource: UITableViewDiffableDataSource<
// 0 due to there already being a separator between .dnsSettings and .ipOverrides.
case .dnsSettings: 0
case .ipOverrides: UIMetrics.TableView.sectionSpacing
+
+ #if DEBUG
case .quantumResistance: tableView.estimatedRowHeight
+ #else
+ case .wireGuardObfuscationPort: tableView.estimatedRowHeight
+ #endif
+
default: 0.5
}
}