The need to work with collections of values is pretty common in Swift. To help with this, Swift provides a number of collection types, flexible containers that let you store a number of different values together within a single entity. One of the most common of these is the Array, and in this article, we’re going to go over the basics.
Issue 13 – November 26th 2015
Swift Developments is a hand-curated newsletter containing a weekly selection of the best links, videos, tools and tutorials for people interested in designing and developing their own apps using Swift. Comment Firstly, Happy Thanks Giving to you if you’re celebrating! Being in the UK, I’m not lucky enough to have some time off, so this […]
Issue 11 – November 11th 2015
Swift Developments is a hand-curated newsletter containing a weekly selection of the best links, videos, tools and tutorials for people interested in designing and developing their own apps using Swift. Comment A quiet week from me with a few days away with the family. Normal service will be resumed next week though as I’ve been […]
Checking API Availability in Swift
The iOS SDK is an ever-changing beast and with new APIs becoming available and others being obsoleted with each release of iOS. Up until now, determining which APIs are available on which platform has been tricking, but with the introduction of Swift 2.0’s availability APIs, things have just got better.
Tuples in Swift
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.
UIAlertController
In this post, we take a look at the UIAlertController
class, a class introduced by Apple in iOS 8 as a replacement for the traditional UIAlertView
and UIActionSheet
classes.