diff --git a/ios/MullvadVPN/View controllers/Settings/SettingsDataSource.swift b/ios/MullvadVPN/View controllers/Settings/SettingsDataSource.swift index 59219e620568..3006be583bb4 100644 --- a/ios/MullvadVPN/View controllers/Settings/SettingsDataSource.swift +++ b/ios/MullvadVPN/View controllers/Settings/SettingsDataSource.swift @@ -155,7 +155,7 @@ final class SettingsDataSource: UITableViewDiffableDataSource() - snapshot.appendSections([.daita, .main]) + if interactor.deviceState.isLoggedIn { + snapshot.appendSections([.daita]) + } + + snapshot.appendSections([.main]) if interactor.deviceState.isLoggedIn { snapshot.appendItems([.daita], toSection: .daita) diff --git a/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift b/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift index 4113ca8660ca..2aa5f6dd5679 100644 --- a/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift +++ b/ios/MullvadVPN/View controllers/VPNSettings/VPNSettingsDataSource.swift @@ -374,7 +374,7 @@ final class VPNSettingsDataSource: UITableViewDiffableDataSource< return switch sectionIdentifier { // 0 due to there already being a separator between .dnsSettings and .ipOverrides. case .dnsSettings: 0 - case .ipOverrides, .quantumResistance: UIMetrics.TableView.sectionSpacing + case .ipOverrides, .quantumResistance: UITableView.automaticDimension default: 0.5 } }