Why Nostr? What is Njump?
2024-04-17 14:50:17

frederik_diamond on Nostr: Done some more progress on my Mac application. Now, the state of the SwiftUI sliders ...

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


I am building a MacOS app called Pretty Mixer. It will be a beautiful audio mixer for Macs that allows you to adjust the volume of each individual application on your Mac.

It’s still very early in development, but the video shows a sneak peek.

The next step is to save all the states, including the positions of the sliders, to memory. Currently, everything resets after switching to a different view.

It's a lot of fun. I've never worked with Swift before, so I am learning a lot while building this application.

#dev #mac #swift
Author Public Key
npub1nj0crmtetu84a7j43yegy358mp8u0e4ye7ndkhtd8dg0edll4mpqn52gqz