iOS: Actually save preferences

This commit is contained in:
Shadowfacts 2020-09-29 15:29:12 -04:00
parent 57023d204d
commit 012ada4af7
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,9 @@ struct PreferencesView: View {
.insetOrGroupedListStyle() .insetOrGroupedListStyle()
.navigationBarItems(trailing: doneButton) .navigationBarItems(trailing: doneButton)
} }
.onDisappear {
Preferences.save()
}
} }
private var doneButton: some View { private var doneButton: some View {