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

View File

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