iOS: Actually save preferences
This commit is contained in:
parent
57023d204d
commit
012ada4af7
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue