In Objective-C, if you want to return multiple values from a function or method you have to either create a class or store values in a dictionary. In Swift though, we have an alternative: Tuples.
AndyBargh.com uses cookies to understand how you use our site and to serve you personalized content and ads. By continuing to use this site, you accept these cookies, our privacy policy and terms of service.Ok