In Objective-C, if you want to return multiple values from a function or method you have to create a class with properties for the those values and then return an instance of that class or alternatively store values in a dictionary as key-value pairs and then return the dictionary. In Swift though, we have an alternative: Tuples. … [Read more...]