Changes viewModel to @StateObject
This commit is contained in:
parent
6cb4c46e4b
commit
12a0d13971
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue