BLOG

October 2016 NEWS

Optional Non-Escaping Closures

One big thing in Swift 3 is that closures are now non-escaping by default. Must-read post by @olebegemann to understand the difference and especially when to use escaping:

"Swift differentiates between escaping and non-escapingclosures. An escaping closure is one that is (potentially) called after the function the closure is passed to returns — that is, the closureescapes the scope of the function it is passed to as an argument."

oleb.net