Introductions to Closures in Swift

Описание к видео Introductions to Closures in Swift

In this video, we are going to dive into closures to really try to understand what they are, and how they are used in Swift.
We will start by understand the closure syntax and simple closures
We will follow that by seeing how we can use closures as parameters in our functions and what trailing closures and escaping means.
We will also look at how Closures are used in SwiftUI all the time.
We will finish by looking at creating functions that can return closures and how closures can capture values.

If you want to support my work, you can buy me a coffee :)
https://ko-fi.com/stewartlynch

******* Download my StewartLynch YouTube Channel Application - Free **********
https://stewartlynch.gumroad.com/l/obsjz

Table of Contents:
0:00 Introduction
1: 51 Simple Closures
9:55 Trailing Closures
13:00 Closures in SwiftUI
17:10 Escaping Closures
19:18 Functions returning closures
21:15 Capturing Values

Starter Project Files:
http://www.createchsol.com/StarterPro...

Completed Project:
https://github.com/StewartLynch/Intro...

Other references:
Playground ViewModifier for SwiftUI
https://github.com/StewartLynch/Playg...

Completion Handler video:
   • Completion Handlers  

Other References:
Stewart Lynch's YouTube Channel:
   / stewartlynch  
Stewart Lynch on Twitter:
  / stewartlynch  
CreaTECH Solutions Website:
https://www.createchsol.com
Stewart Lynch's GitHub:
https://github.com/StewartLynch

Комментарии

Информация по комментариям в разработке