Now we need to use what we learnt about JSON parsing to turn the json data that we get back from coinbase.io into a real Swift Object.

Hint 1: Remember you can type the URL into your browser's address bar to see how the JSON is formatted:

Hint 2: We’re only interested in the last price of bitcoin.

Hint 3: You will need to create a CoinData file to decode the Bitcoin data. This is how we did it in the Clima app:

GOAL


SOLUTION

Check out the solution to this challenge step by cloning the project from the link below:

https://github.com/appbrewery/ByteCoin-iOS13-Completed/tree/Step-4-Solution