Why Learn Swift?

July 27, 2017   |   Learn why Swift is a great first language for those interested in becoming a software engineer.

Swift is a programming language released by Apple in 2014. It was designed for a wide range of uses, from mobile and desktop applications (iPhone, iPad, Apple Watch, Apple TV, Mac) to websites, web applications, and APIs* to operating systems and more.

Swift Scripting: Automatic Version Increments in Xcode

July 20, 2017   |   Automate version increments for a Xcode project using a Swift script.

In this tutorial we'll increment the version number of a Xcode single view application using a Swift script. We'll cover how to make the script executable, accept command line input, and execute shell commands from our Swift file.

Downloading, Caching & Decoding Images Asynchronously with Alamofire: Part 2

December 18, 2016   |   Decode images asynchronously in order to improve scrolling performance in a UICollectionView.

In Part 1 of this tutorial, I explained how to use the Alamofire and AlamofireImage libraries to asynchronously download and cache images to be displayed in a UICollectionView. At the end of that project, we still had a performance problem. UIImage by default waits until right before display to decode . . .

Serializing & Archiving Structs in Swift with Archiver

October 26, 2016   |   Serialize server response objects to Swift structs and archive them to property lists.

There are many options for persisting data between launches in Cocoa apps, including NSUserDefaults, NSKeyedArchiver / NSKeyedUnarchiver, Core Data, and a range of third-party frameworks. NSKeyedArchiver is a popular choice for projects that require more than the basic key-value storage . . .

Downloading, Caching & Decoding Images Asynchronously with Alamofire: Part 1

September 18, 2016   |   Download and cache images asynchronously for use in a UICollectionView.

Downloading and caching images are common tasks in iOS development, especially when using collection and table views. In this tutorial, we're going to use the popular Swift networking library Alamofire and its companion image library AlamofireImage to build an app that displays images of Glacier National Park.