- Visual Studio for Mac
- Xcode
Updated versions preferred
-
Clone this repo and open the project in Visual Studio for Mac
-
Register your application at Musixmatch. You will get an API Key after registration.
-
Add a new JSON file at the root of your project and name it as
Secrets.json
. -
Add following key value pair in
Secrets.json
{ "API_key": "your secret api_key" }
-
Save. Build and run the solution. It should work without any errors.
This project uses a state machine in order to handle different UI states such as Loading, Empty, Error, etc. To get an overview of why and how I used a state machine, please go through this article - The State of Stateful UI.
For additional help in understanding how to build macOS menu bar app using C# and Xamarin, please check out this project