Introduction to Swift Keypaths

Introduction to Swift Keypaths

Keypaths were added in Swift 4. They're a fantastic feature but sometimes it feels difficult to find good situations for using them. However, when understood and used the right way, keypaths allow you to implement additional abstractions into your codebase that would be much harder with generics or protocols. In order to be able to do that, though, it is useful to intuitively understand when to apply the Keypath pattern.

This talk will first explain the different types of keypaths that exist and then go through real world examples to showcase how they can be leveraged in your own projects.


Benedikt Terhechte

March 21, 2019