r/iOSProgramming • u/htom3heb • Dec 03 '17
Made a tiny macOS helper - spotify's 'now playing' in your menu bar!
Hey all,
Feel like showing off a little. I use this utility daily for managing my music without having to open a new window. Feel free to clone or add pull requests!
48
Upvotes
4
u/BrolyDisturbed Dec 04 '17
Wow, what a wonderful idea. Will be downloading it, thanks!
3
u/AG00GLER Dec 04 '17
How did you manage to take the data from Spotify? I’m a bit confused at how the code works.
2
u/[deleted] Dec 04 '17
This is really cool OP! Nice job.
Question regarding some of the code. In the SongData model, you have String optionals for artist and song name, your accessors for both guard against their value, and return nil early. But since the return type is an optional for those values, do you really need the guard statement? Could you have Just instead simply returned artist and sound name respectively? Is this just personal style or is this more common in swift coding practices?
1
u/jayg_1991 Dec 04 '17
This is awesome!! Great work!
1
u/TotesMessenger Dec 04 '17
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/xiaohk Dec 05 '17
Here is a cool related app: https://github.com/ddddxxx/LyricsX