Thursday, November 30, 2017

Passing Data with Callback Functions Tutorial (iOS, Xcode 9, Swift 4)

What is a callback function in Swift and what do they have to do with Function Types?
In this video you will learn what Function Types are and how to use them to create "Callbacks". We use this pattern to pass data between view controllers.

Callbacks (or closures) are essentially a way to pass code from one class to another in Swift.




No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

SwiftUI Search & Filter with Combine - Part 3 (iOS, Xcode 13, SwiftUI, 2...

In part 3 of the Searchable video series, I show you how to use Combine in #SwiftUI for the search and filter logic connected to the searcha...