how to check in a value is in a dictionary's values swift code example Example: swift check dictionary has key let hasKey = myDictionary.keys.contains("myKey")