How can if i try to add three menus in the dictionary i wont let me and throws an error when i try to force unwrap the 3rd item in the menu. However if i force unwrap two of
You can alway iterate through and add to total, much simpler that a line of long addition.
var totalCost: Double = 0 for each in menu { totalCost += each.value } print(totalCost)