Pretty cool huh? As you use Swift more, try and be “Swifty “ and use some of these newer concepts rather than sticking to the Objective-C way of doing things.

We can take it one step further and combine tuples with pattern matching in a switch statement to do some cool things. Let’s say we had a time interval in seconds that we wanted to display as a string in the format “xx min xx sec”, i.e., 01 min 15 sec. Using the method we just wrote: