Episode #533

Derived Bindings in SwiftUI

31 minutes
Published on July 22, 2022

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

Bindings are a core concept in SwiftUI. We can easily convert a @State property wrapper to a binding of its value, and we can traverse keypaths to get Bindings of nested values. What if we wanted to transform the values, or update values inside of collections? In this episode we will explore creating map for transforming bindings, unwrap for transforming optional bindings, and take a look at how bindings with collections work under the hood.

This episode uses Swift 5.5, Xcode 13.4.