Done some more progress on my Mac application.
Now, the state of the SwiftUI sliders is successfully saved.
Which means, even when quitting the app (CMD + Q), and reopening the app, it will remember where all the sliders were positioned.
This means, the sliders no longer reset after switching view or quitting the app.
This is currently only working for the app-specific sliders, not the master volume — that is the next thing I will work on.
For anyone interested, I ended up using UserDefaults (https://developer.apple.com/documentation/foundation/userdefaults).
#swift #swiftui #mac #apple #dev
View quoted note →
Login to reply