We have two labels in the user interface that need updating. The bitcoinLabel and the currencyLabel. The bitcoinLabel needs the last price for the selected currency and the currencyLabel should display the selected currency.
Using what you’ve learnt about Swift protocols and the delegate pattern see if you can create a protocol called CoinManagerDelegate to pass the last price of bitcoin that we got from the API request to the ViewController class and display the data in the user interface.
e.g.
OPTIONAL: It’s usually a good idea to include a delegate method called didFailWithError() so that you can pass any errors that were detected.
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-5-Solution