Weekly bite-sized screencasts on iOS development.

Watch Connectivity

Episode #252 | 17 minutes | published on 01/19/2017
Subscribers Only
In this episode, Conrad Stoll joins us once again to talk about how to use WCSession to pass data back & forth between our watchOS app and our iOS app. We'll use this power for the ultimate good, of course, by ordering a beer straight from our watch.

Swift Grab Bag

Episode #251 | 9 minutes | published on 01/13/2017
Subscribers Only
In this episode we cover some lesser-known features of Swift, including @discardableResult, escaping closures, defer, and using dump versus print for better debugging output.

Poker Hands - Part 3

Episode #250 | 45 minutes | published on 01/05/2017
Subscribers Only
In this final episode in the Poker Hands Kata with Soroush Khanlou, we finish off by improving the design of our program, improving our tests, and implementing the remaining features for detecting the more complicated hands.

Poker Hands - Part 2

Episode #249 | 37 minutes | published on 12/22/2016
Subscribers Only
In this episode I am joined again by Soroush Khanlou. We continue our exploration of the Poker Hands kata, focusing on fleshing out our types. We also begin matching poker hands, leveraging enums with associated types.

Poker Hands - Part 1

Episode #248 | 47 minutes | published on 12/22/2016
Free Video
In this episode I am joined by Soroush Khanlou. Together we pair up to implement the Poker Hands Kata. We start off by parsing the raw string input into structured types, complete with tests.

Yahtzee Kata

Episode #247 | 30 minutes | published on 12/08/2016
Subscribers Only
In this episode we will implement the Yahtzee Kata, which entails scoring hands based on dice rolls. We'll look at leveraging protocols and protocol extensions to mix & match shared behaviors across disparate types in order to perform matching and scoring of the dice.

Improved Guard Setup for Swift

Episode #246 | 7 minutes | published on 12/01/2016
Subscribers Only
In the last episode we showed how to run Swift tests automatically with guard, but it wasn't an ideal setup. We couldn't see compiler errors, nor could we see any output from our program using print. In this episode we leverage Ruby's open3 library to capture stdout and stderr so we can output it to the terminal in the appropriate colors.

Fizz Buzz Kata

Episode #245 | 16 minutes | published on 11/24/2016
Subscribers Only
Code Katas are interesting challenges that can help you practice programming. Some are extremely difficult and others are fairly easy, but they all allow us to exercise the act of programming. Doing code katas can help you learn a new programming language, a new algorithm, or a new style of programming.In this episode we’ll tackle one of the most trivial katas: FizzBuzz.

Logging with Swifty Beaver

Episode #244 | 13 minutes | published on 11/11/2016
Subscribers Only
Logging is an important part of diagnosing issues in our application. Unfortunately, once they've shipped it's difficult to retrieve these logs to help identify issues with our released software. In this episode I'll take a look at SwiftyBeaver, a library that aims to make logging easy and accessible. We'll show how you can separate log messages by severity, selectively log some messages to the Xcode Console, some messages to a file, and sending them encrypted to the SwiftBeaver cloud platform for viewing with their provided viewer application.

Designing a Custom Download Button - Part 2

Episode #243 | 14 minutes | published on 11/03/2016
Subscribers Only
Wrapping up our custom download button, this time we focus on the highlighted image and depressed state of the button, as well as transitioning to and from the progress layer.

Designing a Custom Download Button - Part 1

Episode #242 | 14 minutes | published on 10/27/2016
Subscribers Only
In this episode we create a custom control to serve as our download button. We start by creating a circular progress indicator using CAShapeLayer, then move on to subclassing UIControl to provide our image view and touch handling.

File Downloads - Part 3

Episode #241 | 17 minutes | published on 10/27/2016
Subscribers Only
In this episode we take the download state and progress notifications and update the user interface to reflect this state. We'll see how to translate the notification into the indexPath for that episode row, and how to fake a change related to the fetched results controller to trigger a reload of the content. We will leverage the RateLimit library to save periodic changes in progress to the model without overwhelming Core Data.

File Downloads - Part 2

Episode #240 | 32 minutes | published on 10/20/2016
Subscribers Only
In this episode we create a DownloadInfo model in CoreData in order to track the state of a download, separate from any view controller.

File Downloads - Part 1

Episode #239 | 30 minutes | published on 10/06/2016
Subscribers Only
Downloading large files on iOS represents some unique challenges. Downloads should occur in the background, not confined to a particular view controller. They should be able to report progress on multiple screens, and should be robust enough to survive application suspension and failing network conditions, and respect the user's cellular data plan. In this episode we start a series on downloading large files that will cover all of the above concerns.

Core Data in iOS 10

Episode #238 | 28 minutes | published on 10/04/2016
Subscribers Only
iOS 10 brings some welcome improvements to Core Data, including the all new NSPersistentContainer class. With this release, Apple has created a streamlined API that captures the most common uses of Core Data in iOS applications. In this episode we'll take a look at NSPersistentContainer, as well as the new code-generation capability in Xcode 8.

Swift 3

Episode #237 | 20 minutes | published on 09/29/2016
Subscribers Only
Swift 3 is now out and contains a host of new features and syntax changes. In this episode we'll look at a few of the more common changes you'll run into when upgrade projects to Swift 3 including implicit method argument labels, dropping the NS prefix on a bunch of classes, and the new Swift API naming guidelines.

Creating Sticker Pack Applications

Episode #236 | 7 minutes | published on 09/15/2016
Subscribers Only
Now that iOS 10 is out, we can now create sticker packs to use in iMessage. In this episode we'll create a sticker pack using some artwork made by Jory Raphael, the very same designer who makes the lovely artwork you see on each episode. This particular sticker pack will be available soon in the App Store!

Working with the Pasteboard

Episode #235 | 17 minutes | published on 09/12/2016
Subscribers Only
In this episode we take a look at UIPasteboard, allowing us to inspect, copy, and paste content on the system pasteboard as well as your own custom pasteboards. We'll also look at adding multiple representations of the same item to be a better OS citizen, for instance by copying rich text alongside plain text.

Universal Links

Episode #234 | 16 minutes | published on 09/02/2016
Subscribers Only
Universal Links is a great feature that allows us to render content in an app when a user hits a known URL, instead of opening Safari. For content-based applications, this can be especially useful, as often records that exist on the web also exist in the app. We'll leverage our work from Episode 231 on Shared Web Credentials and extend the demo app to take advantage of Universal Links.

SnapKit

Episode #233 | 18 minutes | published on 08/25/2016
Subscribers Only
Writing Autolayout constraints from code can be quite tedious. SnapKit, the Swift-friendly successor to Masonry, is a friendly DSL that allows creating and updating constraints easy and readable. In this episode we use SnapKit to build out a simple interface mockup using Autolayout completely in code.