Posts

Post marked as solved
4 Replies
Bingo! You nailed it and taught us a few good lessons along the way.Thanks so much for taking time to help a group of novice.Works perfectly.Respectfully,Mike 🙂
Post marked as solved
4 Replies
Good questions Claude,Line 54 displayed all of the exchange rates....so that worked.I added your code and see that, indeed, it is not nil and that the exchange rates are passing to updatedExRates. Thanks for that.Could you help us extract the USD exchange rate and display it in the label? We tried to do this inside viewDidLoad() with the for loop below, but that did not work. Line 6 below has a print command, but that only provided the url for the API rather than extracting the USD rate.Thanks for your help,Mike //this whole for-in loop did not work for (key, value) in updatedExRates { // var exchangeRateValue: Double if (key == "USD"){ let exchangeRateValue = value print(value) displayLabel.text! = String(exchangeRateValue) } }