Weekly bite-sized screencasts on iOS development.

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.

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.