Weekly bite-sized screencasts on iOS development.

Sourcery

Episode #261 | 12 minutes | published on 03/23/2017
Subscribers Only
Writing boilerplate code can get tedious and boring. It can also lead to code duplication, which means it becomes a liability to keep in sync. Sourcery is a code generation tool that can help leverage your existing types and reflect on them in order to generate useful bits of code. In this episode Sam Soffes shows us how to install and use Sourcery, how to integrate it with Xcode’s build system, and how to create a simple Sorcery template to automatically count the number of items in a Swift enum and add it as an option.

CloudKit Querying

Episode #260 | 12 minutes | published on 03/16/2017
Subscribers Only
Now that we have saved records in CloudKit, how do we fetch them again? This video covers how to fetch a single record by ID, how to use full-text search to match partial terms, how to return all records (with paging support) and how to query by location.

Hello Cloud Kit - Part 2

Episode #259 | 10 minutes | published on 03/09/2017
Subscribers Only
In order to use CloudKit to read or write private data (or to write in the public database) the user will have to be signed in to iCloud on their device. If they are not, they'll not have a great experience, and things won't work. In this episode we'll check the account status before trying to save a record in CloudKit. We'll also respond to the notification to know when the user's account status has changed so we can react accordingly.

Hello Cloud Kit - Part 1

Episode #258 | 10 minutes | published on 03/02/2017
Subscribers Only
The first episode in a new series on CloudKit, here we see how to setup our project to use CloudKit as well as how to create and save our first record.

watchOS Notifications - Part 2

Episode #257 | 16 minutes | published on 02/24/2017
Subscribers Only
In this episode, Dory finishes up implementing notifications for the Beer Button watch app. We learn how to configure and send timed notifications, and how to respond to those on the watch.

watchOS Notifications - Part 1

Episode #256 | 16 minutes | published on 02/16/2017
Subscribers Only
In this episode Dory Glauberman covers how to set up notifications in your application on both the iPhone and Apple Watch using UNUserNotificationCenter. It highlights best practices for requesting notification authorization and demonstrates how to fire a sample notification for the Beer Button watch app.

Pin Input

Episode #255 | 16 minutes | published on 02/10/2017
Subscribers Only
Sam Soffes walks us through an elegant way to handle 4-digit PIN input, for cases where you have a software lock screen to your app, or perhaps a 4 digit confirmation code is sent to you via SMS and you need to type it in to continue. Often this type of thing is done with four text fields side-by-side, with awkward delegate implementations to manage focus, etc. Instead, Sam shows us how to leverage the UIKeyInput protocol and create a much cleaner implementation.

The Dock

Episode #254 | 14 minutes | published on 02/04/2017
Subscribers Only
In this episode Conrad takes us through supporting the new dock feature in watchOS 3. If you want your watch app to be used, you should ensure it plays well with the dock by providing relevant UI snapshots that create a more seamless experience. The reward is that your app is treated like a first class citizen and kept running for longer!

Digital Crown

Episode #253 | 11 minutes | published on 01/27/2017
Subscribers Only
In this episode, Conrad Stoll takes us through the new APIs we have for accessing raw information from the digital crown on the Apple Watch. In previous versions of watchOS, we had to resort to using builtin controls (or silly hacks), but now we have the raw data so we have much more flexibility.

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.