Tag

Closure

Capturing Values In Swift Closures

We use closures pretty much every day, and, some times, it may be not very clear what happens and how a closure works. Let’s find out how a closure captures a variable and how to prevent weird behaviours.

© 2017 Marco Santa Dev — Powered by WordPress

Theme by Anders NorenUp ↑