How to use tuples in Swift

Tuples in Swift are very lightweight data types which enable you to create, store and pass around groups of values which can be of different types. This can be very useful when trying to return multiple values from a function in Swift as a single compound value. Creating tuples How to define a basic tuple which …