Weekly bite-sized screencasts on iOS development.

Let's Build Activity++ - Part 7

Episode #229 | 13 minutes | published on 07/22/2016
Subscribers Only
We build our activity streak detection algorithm, testing it along the way with Quick and Nimble.

Let's Build Activity++ - Part 6

Episode #228 | 14 minutes | published on 07/14/2016
Subscribers Only
In this episode we allow for generating health data for use in the iOS simulator, where HealthKit data will not be available. We then create some known streaks to make the streak detection and UI decoration easier to test. We end the episode by setting up Quick and Nimble that we will use to test our streak generation algorithm.

Let's Build Activity++ - Part 5

Episode #227 | 28 minutes | published on 07/07/2016
Subscribers Only
Continuing our series on building out our Activity++ clone, this time we hook up our application to HealthKit, displaying real data in the app from a device. We continue to use our wrapper type so that the application can still work in the simulator with randomized data, which also allows us to set up certain scenarios that we wish to test, such as streaks.

Let's Build Activity++ - Part 4

Episode #226 | 12 minutes | published on 07/01/2016
Subscribers Only
In this episode we examine the scrolling performance of our activity ring views. We see that framerate suffers when scrolling quickly, then apply a few changes to bring scrolling performance back to 60 frames per second.

Let's Build Activity++ - Part 3

Episode #225 | 10 minutes | published on 06/23/2016
Subscribers Only
This week we take our ring views and use them to create a collection view of rings, one for each day in an entire year.

Let's Build Activity++ - Part 2

Episode #224 | 16 minutes | published on 06/09/2016
Subscribers Only
Continuing in our quest to create the interface behind Activity++, this time we introduce a randomize button, proper theme colors, labels for the rings, and highlighting when the goal for each ring has been met.

Lets Build Activity++!

Episode #223 | 38 minutes | published on 06/02/2016
Subscribers Only
Let's attempt to recreate Activity++, an application by _David Smith. The app features a number of interesting interface elements that would be interesting to try to build ourselves! In this part we'll start out by replicating the ring views for a given day.

Easy Auth - Part 3

Episode #222 | 23 minutes | published on 05/27/2016
Subscribers Only
In this episode we wrap up the Easy Auth series building the tvOS application to use our API. We'll create an authentication client and discuss how to pass around a set of values to and from the API, as well as polling for status.

Easy Auth - Part 2

Episode #221 | 13 minutes | published on 05/19/2016
Subscribers Only
This time we take a look at how to improve security by not transmitting the user's auth token directly. Instead, we'll leverage HMAC SHA1 hashing with the provided client id. Doing this makes the response not directly useful. The client needs to use the client id and the agreed upon hashing algorithm to arrive at the common auth token.

Easy Auth - Part 1

Episode #220 | 20 minutes | published on 05/12/2016
Subscribers Only
Typing a username and password on the Apple TV is cumbersome and annoying. For the NSScreencast TV app, I decided to implement a code-based authentication where you can easily log in on another device, type in the code, and have the device be logged in automatically. In this episode we'll go over how to implement this, starting with the server. This episode is done entirely in Ruby using the Sinatra web application framework, but the technique is applicable to any server side technology (including Swift!).

NSCalendar

Episode #219 | 8 minutes | published on 05/06/2016
Subscribers Only
NSCalendar is a class that is easy to dismiss as standard, but is packed full of really useful functions. In this episode I talk about how I solved a problem using NSDateComponents, then came back and solved it in a much cleaner way using new methods on NSCalendar.

Core Data with Swift

Episode #218 | 14 minutes | published on 04/28/2016
Subscribers Only
In this episode we continue our work on the Apple TV app for NSScreencast by adding a local cache of data we receive from the API. Doing so will allow us to have content immediately on launch without waiting for the network, and will also support client-side searching and filtering. Here we talk about how to set up Core Data with Swift and write a few quick tests using an in-memory store to verify that things are working.

Text Attachments

Episode #217 | 18 minutes | published on 04/14/2016
Subscribers Only
In this episode Sam shows us how to mix rich content such as images into a text view. Using Text attachments we can flow text around an image, select the image and delete or replace it, and more. Sam shows how to respond to layout changes and some advice on performance. Text Attachments are not for the faint of heart!

Swift Web Frameworks

Episode #216 | 19 minutes | published on 04/07/2016
Subscribers Only
Running Swift on Linux is intriguing because it allows us to create web applications with Swift and host them on an inexpensive Linux VPS. In this episode we'll use Vagrant to create an Ubuntu virtual machine, install a working version of the Swift development snapshot, and write a tiny web application, complete with routing, parameter extraction, template rendering with Stencil, and JSON parsing. You'll learn about Swift Build, specifying version dependencies, and where to look for the source code.

Custom Dragging with UICollectionView

Episode #215 | 24 minutes | published on 04/01/2016
Subscribers Only
In this episode we add a custom drag behavior to reorder collection view cells. UICollectionViewController gives us some of this behavior, but to add transforms, shadows, and animation we'll have to implement our own.

Swift on Linux

Episode #214 | 16 minutes | published on 03/28/2016
Subscribers Only
In this episode we talk a look at the cool new world of open source Swift! We'll use vagrant to spin up a Linux virtual machine, then install the latest Swift development snapshot and talk about running the Swift REPL and compiling programs on Linux. Using the latest development snapshot is not without its troubles, however, so you'll see how best to report bugs and/or look for workarounds. Enjoy!

Icon Badging with Fastlane

Episode #213 | 9 minutes | published on 03/17/2016
Subscribers Only
When doing release builds it is handy to automatically update the build number so we always have a unique version for reporting bugs. However it is not easy for testers to always know which version they are testing. In this episode we'll look at how to set up versioning for our project, automatically increment the versions number for release builds, and badge our application's icon so it is easy to see which version of the app you have installed.

Fastlane

Episode #212 | 16 minutes | published on 03/10/2016
Subscribers Only
In this episode we set up fastlane to automate a lot of the tedious tasks related to building and deploying iOS applications. We use it to create our bundle identifier, create certificates and provisioning profiles, build and test our app, take screenshots on multiple devices, and submit to TestFlight.

Indenting Text with Text Kit

Episode #211 | 18 minutes | published on 03/03/2016
Subscribers Only
Sam joins us again to cover how to change text layout dynamically as you type. He will implement a feature common in Markdown editors where typing dash followed by a space indents the list. In the process you'll learn about more of the Text Kit API. If you've ever wondered what type of work goes into building a text editor, this episode is for you!

Cool Text Effects - Part 2

Episode #210 | 12 minutes | published on 02/25/2016
Subscribers Only
Continuing on from last time, we take our glyph layers and apply Core Animation, providing for some interesting effects including animating the stroke of each glyph path and applying a typing effect with transforms.