Blog Archives

Lightning tour of closures in Swift

Check out this video tutorial with a lightning tour of closures in Swift. It covers: Functions as data types Basic closure syntax Trailing closures   If you’re interested in more of these sorts of videos, I’ll be posting frequently over on

Tagged with: ,
Posted in Swift

COMMUNICATION BETWEEN OBJECTS IN OBJECTIVE C AND SWIFT COMPARED WITH ACTIONSCRIPT – PART 4

Blocks/Closures Blocks are another way that Objective C performs callbacks. Flash and Swift uses this technique as well, where they are called closures. Basically this involves passing in a function/method/message to the child, whilst maintaining the focus of the parent.

Tagged with: ,
Posted in Flash, Objective C, Swift