Check out example codes for "swift retrieve value from dictionary". It will help you in understanding the concepts better.

Code Example 1

var companies = ["AAPL" : "Apple Inc", "GOOG" : "Google Inc", "AMZN" : ", Inc", "FB" : "Facebook Inc"]

for (key, value) in companies {
    print("\(key) -> \(value)")

//Or if you only want the values:

for value in Array(companies.values) {
// One value with direct access on the dictionary:


Learn ReactJs, React Native from