Weekly bite-sized screencasts on iOS development.

There are 10 episodes with tag 'apple tv'   Clear search

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!).

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 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.

JSON API Client - Part 2

Episode #204 | 21 minutes | published on 01/14/2016
Subscribers Only
In this episode we start writing an application-specific API Client. We use Argo to decode our JSON response into an Episode model, including some nested object decoding, date formatting, and wrap it up by testing the implementation to make sure it works.

JSON API Client

Episode #203 | 32 minutes | published on 01/07/2016
Subscribers Only
In this episode I start creating a reusable api client that will make it a lot easier to consume a JSON api and convert the response into model objects. It uses Argo for the JSON parsing, and leverages Swift features to provide a rich callback for the API calls.

NSSTV Part 2 - Icons and Artwork

Episode #199 | 9 minutes | published on 12/03/2015
Subscribers Only
In this episode we use Sketch to export top shelf artwork and layered icons for tvOS. We then preview the layered artwork using the Parallax Previewer tool. We then add these to our asset catalog in Xcode to add them to our application.

NSSTV Part 1 Project Setup

Episode #198 | 8 minutes | published on 11/19/2015
Subscribers Only
In this episode we start a new series on building the NSScreencast tvOS application. We'll start off by creating the Xcode project, initialize our Gemfile and Podfile for dependencies, as well as talk about a few ways of getting around issues where a 3rd party library doesn't indicate that it supports tvOS yet.

Mastering TV Focus

Episode #197 | 18 minutes | published on 11/16/2015
Subscribers Only
In this episode we take a deep look at how focus works with tvOS. We learn how to use UIFocusGuide to redirect focus when the engine cannot find an appropriate element to focus. We also learn some debugging tricks on how to visualize focus moves using Quick Look, and how to use _whyIsThisNotFocusable to troubleshoot lack of focus. Finally we'll learn about custom focus animations and layered images.

CAReplicatorLayer

Episode #196 | 15 minutes | published on 11/06/2015
Subscribers Only
In this episode we take our missile animation from last time and update it to use CAAnimations. Using these animations we can add a wiggle, along with a small oscillating rotation to give a little life to the missile. Then we utilize CAReplicatorLayer to have them fan out and fire in slightly different directions.

Intro to Apple TV

Episode #195 | 12 minutes | published on 11/05/2015
Subscribers Only
In this episode we dive into tvOS, creating a spaceship dashboard application, complete with animated rockets and a crew list. Ludicrous speed, go!