Save smart postion user default

This commit is contained in:
Garth Vander Houwen 2024-02-16 16:54:56 -08:00
parent f3d51d9fcc
commit bdb38b426e

View file

@ -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