From 12a0d13971022f5121d7e28865787eb0c4013a03 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Tue, 30 Jun 2020 22:31:12 +0800 Subject: [PATCH] Changes viewModel to @StateObject --- Multiplatform/iOS/Settings/SettingsView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Multiplatform/iOS/Settings/SettingsView.swift b/Multiplatform/iOS/Settings/SettingsView.swift index a20e8c791..baa7278dc 100644 --- a/Multiplatform/iOS/Settings/SettingsView.swift +++ b/Multiplatform/iOS/Settings/SettingsView.swift @@ -56,7 +56,7 @@ struct SettingsView: View { let sortedAccounts = AccountManager.shared.sortedAccounts @Environment(\.presentationMode) var presentationMode - @ObservedObject private var viewModel = SettingsViewModel() + @StateObject private var viewModel = SettingsViewModel() var body: some View { NavigationView {