From 05671a8410c3b35ec30e9552578c391f9dcc8b83 Mon Sep 17 00:00:00 2001 From: Andrew Bulhak Date: Wed, 27 Nov 2024 11:48:56 +0100 Subject: [PATCH] Make minor fixes --- .../Obfuscation/ShadowsocksObfuscationSettingsView.swift | 2 +- .../Settings/SwiftUI components/SingleChoiceList.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ios/MullvadVPN/View controllers/Settings/Obfuscation/ShadowsocksObfuscationSettingsView.swift b/ios/MullvadVPN/View controllers/Settings/Obfuscation/ShadowsocksObfuscationSettingsView.swift index 0c5184ecf712..3c402a860519 100644 --- a/ios/MullvadVPN/View controllers/Settings/Obfuscation/ShadowsocksObfuscationSettingsView.swift +++ b/ios/MullvadVPN/View controllers/Settings/Obfuscation/ShadowsocksObfuscationSettingsView.swift @@ -67,6 +67,6 @@ struct ShadowsocksObfuscationSettingsView: View where VM: ShadowsocksObfusca } #Preview { - var model = MockShadowsocksObfuscationSettingsViewModel(shadowsocksPort: .automatic) + let model = MockShadowsocksObfuscationSettingsViewModel(shadowsocksPort: .automatic) return ShadowsocksObfuscationSettingsView(viewModel: model) } diff --git a/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift b/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift index f2265a6e068a..7f6cab3da3bd 100644 --- a/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift +++ b/ios/MullvadVPN/View controllers/Settings/SwiftUI components/SingleChoiceList.swift @@ -229,7 +229,7 @@ struct SingleChoiceList: View where Value: Equatable { .multilineTextAlignment( customFieldMode == .numericText ? .trailing - : .leading/*@END_MENU_TOKEN@*/ + : .leading ) .frame(minWidth: inputWidth, maxWidth: .infinity) .fixedSize()