Swift - How to get the lastkey of a dictionary

Viewed 2538

I'm working with a dictionary and I would like to know how to get the last value.

I got the first value by using myDictionary.keys.first and I tried to get the last value by doing myDictionary.keys.last but it's not working.

Thank you for your help.

2 Answers
Related