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

  • 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!

  • Image Gallery Navigation

    #563

    macOS Mastodon Client

    In this episode we page between images in a post using some custom navigation buttons. When doing this we encounter an issue with implementing keyboard shortcuts for these buttons where a SwiftUI helper just doesn't work. For the fix we'll have to wait for the next episode.

  • Image Zoom Gesture & Keyboard Shortcuts

    #562

    macOS Mastodon Client

    In this episode we handle zooming into images using a gesture on the trackpad or with ⌘+/- on the keyboard.

  • Aligning and Zooming Images

    #561

    macOS Mastodon Client

    When tapping on an image, we want to open a new window with that image, but have it expand from the position in the gallery on the post. To do so, we have to do some window manipulation using NSPanel and some frame calculations.

  • Understanding and Fixing Hit Testing Issues

    #560

    macOS Mastodon Client

    In this episode we explore a little hit testing problem we have with our custom layout solution. We implement some techniques to help visualize and explain the problem and then ultimately fix it.

  • Opening Windows | macOS Coordinate System

    #559

    macOS Mastodon Client

    In this episode we dive a little deeper into how Windows can be opened using SwiftUI, then see how we can drop down to AppKit to customize it further. We'll learn about style masks and the different behaviors we have for positioning the window. Finally we use this knowledge to open a window with a selected image from a post.

  • Laying Out Images

    #558

    macOS Mastodon Client

    In this episode we show the post's images, using a custom layout algorithm to position multiple images in the space available for a post. Also, new icon!

  • Auto Login and Sidebar with Translucency

    #557

    macOS Mastodon Client

    We add the ability for the app to remember that a user was logged in, auto log them in w/ the saved credentials. We also add a sidebar to display the user's avatar, including a translucency effect that was not obvious at first glance how to implement. Finally we add auto-paging to the app so that the app will continuously fetch the next page when you reach the bottom.

  • Integrating Link Previews into the Timeline

    #556

    macOS Mastodon Client

    Now that we have a view for rendering link previews, now we integrate it into the timeline. We'll start by updating our model to capture links, then move on to adjusting the layout within the post view.

  • Creating Rich Link Previews

    #555

    macOS Mastodon Client

    Posts with links in them can be expanded to show richer information, including an image for many sites that support it. In this episode we'll utilize the LinkPresentation framework to add this to our app. We'll also build out a cache using NSCache to ensure that we respond quickly when rendering the same post while scrolling.

  • ViewThatFits and Remote Images

    #554

    macOS Mastodon Client

    In this episode we continue with our post UI, making it adapt the layout to the available size using the ViewThatFits view in SwiftUI. Then we turn our attention to the avatars, which need to be fetched and displayed. We start with AsyncImage, but after a discussion we conclude that we will need more control over how the images are fetched and cached, so we implement our own RemoteImageView.

  • Mastodon Post UI and HTML Parsing

    #553

    macOS Mastodon Client

    In this episode we tackle showing a list of posts, which requires us to convert the network models into models more fit for the UI, parsing HTML in order to display as an AttributedString, and displaying the author information.

  • Showing the Timeline

    #552

    macOS Mastodon Client

    In this episode we take our authenticated session and use it to fetch the user's timeline on the selected server.

  • Adding OAuth Log in with ASWebAuthentication

    #551

    macOS Mastodon Client

    In this episode we complete our log in functionality using the AuthenticationServices and the keychain. We'll also see how we will represented an authenticated session using a new type, so that other parts of our code will have everything it needs to make authenticated calls to the API.

  • OAuth App Creation and Keychain

    #550

    macOS Mastodon Client

    In this episode we lay the foundation for the OAuth flow with Mastodon servers. We'll utilize KeychainAccess as a wrapper for the Keychain API, so that we can store secrets in a secure way.