What are the different collection types available in Swift?

There are two varieties of collection types in Swift:

Array: In Swift, you can create an array of single type or an array of multiple type.

Dictionary: In Swift, dictionary is similar to hash table in other programing language. You can store a key-value pair in a dictionary and access the value by using the key.