diff --git a/Meshtastic/Views/Settings/AppSettings.swift b/Meshtastic/Views/Settings/AppSettings.swift index 44b1790f..579aeda5 100644 --- a/Meshtastic/Views/Settings/AppSettings.swift +++ b/Meshtastic/Views/Settings/AppSettings.swift @@ -73,6 +73,9 @@ struct AppSettings: View { Label("appsettings.smartposition", systemImage: "brain.fill") } .toggleStyle(SwitchToggleStyle(tint: .accentColor)) + .onChange(of: (enableSmartPosition)) { newEnableSmartPosition in + UserDefaults.enableSmartPosition = newEnableSmartPosition + } VStack { Picker("update.interval", selection: $provideLocationInterval) { ForEach(LocationUpdateInterval.allCases) { lu in