Capturing Values In Swift Closures

Closures are a very powerful feature of Swift, and most of us will be very familiar with their usage. However, it’s always good to remind ourselves exactly how they work. In this post, Marco Santarossa looks at how we capture values in Swift closures, and in particular how to correctly use closure capture lists.