So not technically impressive or anything of the sort, but this was my first foray into SwiftUI. Of course, SwiftUI does not natively/ fully support menu bar widgets like this, and I didn't want to pay for the developer licence just to make this work.
Ended up running AppleScript to query Spotify for the information, and it works for my needs at least.
One weird bug is that it boots up Spotify if isn't already running, so this program has to be quit before Spotify is quit! Should probably fix that...
Working on this would require XCode, and it should be importable as one. It might require some odd permission to query Spotify, but the 'codebase' is about 50 lines so shouldn't take too long to verify nothing malicious is happening :)
In the meanwhile, I built the project, and made a release on GitHub. Thanks for pointing that out!
4 comments
[ 4.8 ms ] story [ 20.3 ms ] threadEnded up running AppleScript to query Spotify for the information, and it works for my needs at least.
One weird bug is that it boots up Spotify if isn't already running, so this program has to be quit before Spotify is quit! Should probably fix that...
Working on this would require XCode, and it should be importable as one. It might require some odd permission to query Spotify, but the 'codebase' is about 50 lines so shouldn't take too long to verify nothing malicious is happening :)
In the meanwhile, I built the project, and made a release on GitHub. Thanks for pointing that out!