Episode #518

Creating an Actor-based Image Cache

Series: Async / Await

27 minutes
Published on January 28, 2022

This video is only available to subscribers. Get access to this video and 584 others.

In this episode we create an image cache using an actor that provides disk-caching for images from the Unsplash API. We'll also talk about Sendable and enable some compiler warnings to help us catch potential issues.

To enable the additional warnings in Swift 5.5, put these settings in Other Swift Flags in Xcode build settings:

-Xfrontend -warn-concurrency -Xfrontend -enable-actor-data-race-checks

This episode uses Xcode 13.2, Swift 5.5.