Top-notch video tutorials for Swift developers

Thousands of developers use NSScreencast to stay on top of iOS development.

ExxonMobil
Venmo
Thoughtbot
The Working Group
Medium

Updated Regularly

Bite-sized videos on iOS development.

The iOS landscape is large and changes often. With short, bite-sized videos released on a steady schedule, NSScreencast helps keep you continually up to date.

Up to date with Xcode 15 and iOS 17

We cover the latest and greatest to get you up to speed quickly.

UIKit, SwiftUI, SwiftData, and macOS

In our catalog you'll find a wide variety of topics and UI frameworks.

Swift Language

Increase your knowledge of the Swift language and take advantage of new Swift language features as they are developed.

High Quality Videos

We stress the details. Each screencast is carefully produced in HD quality.

Short and Focused

We don't want to waste your time. Most videos are between 10 and 20 minutes long.

Any Device

Stream on the web or use our native apps for iOS or the tv.

Team Plans

Get NSScreencast for your whole team. Discounts start at 5 seats
Steven Tolton

Have I mentioned lately how awesome NSScreencast is? No? Worth the subscription. Check it out if you’re an iOS developer. Or even if you’re not and you want an example of how to do coding screencasts well.

Foster Bass

Got tired of dead-end googling so I checked to see if @NSScreencast had covered what I was looking for. Of course he had, 4 years ago. Should have checked there first.

Aijaz Ansari

One 13-minute episode of @NSScreencast just paid for the yearly subscription fee in amount of time saved. Do it.

Sam Soffes

Seriously great stuff even for seasoned developers. I’ve learned a good amount from Ben’s videos.

James Dempsey

You can really expand your development horizons in just a few minutes a week with NSScreencast.

Alexis Gallagher

Random PSA for iOS developers: @NSScreencast is a great resource, and worth every penny. It’s high quality, practical, and honest.

Nate Armstrong

Can’t say enough good things about @NSScreencast There is gold in the Road Trip DJ Series.

Karl Oscar Weber

I just reuppped my subscription to @NSScreencast. [An] indespensible resource if you’re into iOS or Mac Development.

Marcus Ziadé

Just finished @NSScreencast series on Modern CollectionViews. Strongly recommended. Programmatic UI, nicely structured code, easily approachable explanation style. 👌

  • Parsing Strings into Structured Data

    #587

    In this episode, we explore parsing strings into structured data using the Swift parsing library from Point Free. We demonstrate how to create composable parsers, starting with a simple example, then build a couple more complex parsers, including one for parsing sample input from Advent of Code and another for parsing CSV data of taxi trips. We'll explore how to use both forms of parsers and lean on composability to build them up.

  • Control time with Clocks

    #586

    In this episode, we explore the Swift Clock protocol, particularly the utility in testing and Xcode previews. Clocks are essential for managing time-related functionality in code but can complicate tests and previews by causing delays. By creating custom clocks, developers can control time advancement and sleeping, making tests and previews more efficient. Two custom clocks are implemented: an ImmediateClock and a ScaledClock. These allow you to bypass or scale the delay, allowing for quicker iterations in previews. The Immediate Clock skips delays entirely, while the Scaled Clock speeds up the delay by a specified factor. These custom clocks can also be used in tests to avoid unnecessary waiting, enhancing development efficiency.

  • Swifty Migrations with Monarch

    #585

    Keeping files and databases compatible with changing versions of your code can be challenging. As you add new features to your app, your data modeling needs may change, which can break when processing data created on earlier versions of the app. To handle this, we use migrations, which help migrate the data from one version of the app to another. This episode will show how to accomplish this using a new framework called Monarch.

  • A SwiftUI Task Bug?

    #584

    In this episode we explore a surprising behavior of the task modifier when embedding your SwiftUI views inside of containers that are implemented with UIKit.

  • Offloading work with Vapor Queues

    #583

    Build a Vapor Backend

    In this episode we will introduce Vapor's Queues package and use Redis as our backing storage engine. The performance characteristics of Redis make it a great choice to store work to be processed later. We'll then set up an EmailJob to send a welcome email to new users. We'll also explore how to run these in-process in development as well as separate processes for production. As a final bonus, we'll create a custom Vapor command to test this all out to see how it behaves with many jobs enqueued.

  • Setting up and integrating Redis as a key-value store

    #582

    Build a Vapor Backend

    Redis is a popular choice for a key-value store for backend applications. This can be used for a multitude of different reasons, such as caching with automatic expiration, rate limiting based on ip address, leaderboards, pub/sub and much more. Its performance characteristics make it a fantastic choice for queuing systems, which we'll cover soon. In this episode we will set up a redis server in our docker compose file, then integrate it into our Vapor application with a simple middleware to count the number of requests to a given path.

  • Generating and Authenticating with JWTs

    #581

    Build a Vapor Backend

    In this episode we will explore supporting JSON Web Tokens, or JWTs. These are a common standard for use in authentication tokens which allows you to support 3rd party authentication providers, token expiration, user metadata and more. These are cryptographically signed and can be verified by the server with a secret. There is also the option to use RSA public/private key pairs to allow clients to verify tokens without going back to the server that signed them. For these reasons JWTs are a really powerful option. Here we will use the Vapor JWT package to provide support for generating and authenticating with HS256 tokens.

  • Authenticating users and protecting routes

    #580

    Build a Vapor Backend

    In this episode we will explore how to use AsyncRequestAuthenticator types, such as AsyncBasicAuthenticator and AsyncBearerAuthenticator. We’ll see how to compose these to support multiple authentication strategies and how to protect certain routes to require authenticated users.

  • Create a User with a validated & hashed password

    #579

    Build a Vapor Backend

    This episode will introduce a new model for a User that will contain validations to ensure the email address format is correct (using a built-in regular expression) and that the password length is good and secure. We'll also ensure to hash the password with bcrypt before storing it in the database. Finally we'll make a custom Response model for our User so that we don't reveal internal fields to clients.

  • Creating Songs with a Custom Payload Struct

    #578

    Build a Vapor Backend

    In this episode, we create a form to create songs from our API by implementing a create route. We use a payload struct to normalize and validate user input for song title and artist name. We also ensure that duplicate artists are not created by using a custom comparison method. Finally, we create the artist and song in the database and return the newly created song. We also configure the JSON output to use snake case instead of camelcase for our default encoder and decoder for our Vapor app.

  • Routing and Controllers

    #577

    Build a Vapor Backend

    In this episode, we explore Vapor routing more deeply. We set up a route to fetch a band by its slug, handling async operations and errors. After testing, we refactor with a findBySlug method for reusability. We add a route to fetch songs for a band and discuss avoiding inefficient querying. To organize the code, we create BandsController and SongsController to group routes.

  • Create Fluent Models with Parent/Child Relationships

    #576

    Build a Vapor Backend

    Now that we have our database setup, we can create our models. We'll start by examining the Model and Content protocols, then implement the necessary properties decorated with Fluent's property wrappers to denote primary keys, fields, and foreign keys.

  • Understanding Fluent Migrations

    #575

    Build a Vapor Backend

    In order to evolve a persistent store over time you have to migrate the data. Fluent, the Vapor Framework that offers ORM support for popular databases, has a solution for this. In this episode we will understand how to write migrations, how to revert them and how to evolve your schema over time without losing data.

  • Building a Docker Image for Vapor and Postgres

    #574

    Build a Vapor Backend

    Docker is a common choice for running services locally for development as well as server deployment. Vapor comes by default with a working Docker setup, so in this video we will explore how this all works. We'll also explore how to configure the database with Environment variables.

  • Migrating between versions of your model

    #573

    Leveraging SwiftData for Persistence

    In this episode we cover migrating our Swift Data models between incompatible versions using custom and lightweight migration.

  • Querying data with the @Query Macro

    #572

    Leveraging SwiftData for Persistence

    In this episode we will provide a searchable interface using the @Query and #Predicate macros. We'll discuss how to use localizedStandardCompare instead of lowercase and other limitations of predicates. We'll also implement a solution for adding dynamic data to the query.

  • Editing Relationships with SwiftData

    #571

    Leveraging SwiftData for Persistence

    In this episode we'll create a form to add and edit songs for a given artist. This will lean on the technique we used last time with a small workaround required.

  • Building forms to create and edit models with SwiftData

    #570

    Leveraging SwiftData for Persistence

    We learn how to build a form in SwiftData. We cover how to use the .sheet modifier to present a new view for creating or editing artist records. We also cover creating the state for the form, presenting the sheet, and creating the form itself. We also implement a scratch model context to ensure that our changes can be discarded if the user taps the Cancel button.

  • Inserting and Deleting records with the ModelContext

    #569

    Leveraging SwiftData for Persistence

    This episode discusses how to work with the ModelContext in a SwiftUI app to insert and delete data. The ModelContext can be accessed through the ModelContainer, which is set up in the environment automatically. The @Query macro is used to retrieve artists from the database and iterate over them. We also implement swipe to delete using the onDelete modifier.

  • The @Model Macro

    #568

    Leveraging SwiftData for Persistence

    In this episode we will take a look at the new @Model macro, which we can use to decorate our model classes that we want to persist with SwiftData.

  • SwiftData - The Basics

    #567

    Leveraging SwiftData for Persistence

    SwiftData is a replacement for CoreData, built entirely for Swift. It leverages the underpinnings of Core Data, but is much simpler to work with. In this video we will cover the first 3 main types you'll need to understand: ModelConfiguration, ModelContainer, and ModelContext.

  • Date formatted() - a Hidden Gem

    #566

    With many great features announced each year, it's easy for smaller changes to go without as much fanfare. In this episode we'll take a look at a new way to format dates using the .formatted() API. It's easy to use, expressive, and best of all we don't need to worry about caching formatters anymore!

  • A Look at the New Swift Testing Framework

    #565

    In this episode we take a look at the newly announced Swift Testing framework that is currently in preview. This leverages Swift Macros to make tests much more friendly to write, gives you much richer diagnostic information when tests fail, and is generally a welcome improvement over using XCTest. Keep in mind this is a preview at the time of recording and will require a snapshot toolchain of Swift.

  • Implementing a Command Design with Combine

    #564

    macOS Mastodon Client

    Last time we left off where keyboard shortcuts weren't quite working the way we wanted. In this episode we take the time to explore the various options we tried and why they don't work. We address this by implementing a key handling system in AppKit and publishing these as commands to SwiftUI using a Combine subject. This wraps up our series on Building a Mastodon client for macOS!