Use Closures Not Delegates | Swift 5, Xcode 10
Today we cover why I think you should consider using closures instead of delegates. We will go over a common example of where delegates are used and I will explain how to convert that example to a closure/callback style.
By the end of this video, you will know how to use and create your own closures, replace delegates with those closures, and know when to use closures over delegates.
*** Show Notes and Links ***
Need Help?
https://kiloloco.com/membership
Project Files:
https://kilo-loco.teachable.com/courses/youtube/lectures/9241034
Kyle Lee on Social Media:
www.kiloloco.com
YouTube- https://www.youtube.com/kiloloco
Twitter- https://twitter.com/kilo_loco
Instagram- https://instagram.com/kilo_loco
---------GEAR -------
Code Passionately T-Shirt
http://a.co/d/53OkIu0
Laptop - 2017 MacBook Pro
https://amzn.to/2tk5yLr
Microphone - PowerDeWise Lavalier Microphone
https://amzn.to/2In9PCh
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, we’ll receive a small commission. This helps support the channel and allows us to continue to make videos like this. Thank you for the support!
Видео Use Closures Not Delegates | Swift 5, Xcode 10 канала Kilo Loco
By the end of this video, you will know how to use and create your own closures, replace delegates with those closures, and know when to use closures over delegates.
*** Show Notes and Links ***
Need Help?
https://kiloloco.com/membership
Project Files:
https://kilo-loco.teachable.com/courses/youtube/lectures/9241034
Kyle Lee on Social Media:
www.kiloloco.com
YouTube- https://www.youtube.com/kiloloco
Twitter- https://twitter.com/kilo_loco
Instagram- https://instagram.com/kilo_loco
---------GEAR -------
Code Passionately T-Shirt
http://a.co/d/53OkIu0
Laptop - 2017 MacBook Pro
https://amzn.to/2tk5yLr
Microphone - PowerDeWise Lavalier Microphone
https://amzn.to/2In9PCh
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, we’ll receive a small commission. This helps support the channel and allows us to continue to make videos like this. Thank you for the support!
Видео Use Closures Not Delegates | Swift 5, Xcode 10 канала Kilo Loco
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Weak and Unowned Self Closure Memory Leak Fixes](https://i.ytimg.com/vi/q0-DIJszYRo/default.jpg)
![Start Using Lazy | Swift 5, Xcode 10](https://i.ytimg.com/vi/ByEY4mfSAPM/default.jpg)
![Swift Delegate Protocol Pattern Tutorial - iOS Communication Patterns Part 1](https://i.ytimg.com/vi/DBWu6TnhLeY/default.jpg)
![Swift Basics - Closures](https://i.ytimg.com/vi/vRty_yzESBo/default.jpg)
![Getting Started With Unit Testing | XCTest | Swift](https://i.ytimg.com/vi/P-Zow2yVx4o/default.jpg)
![](https://i.ytimg.com/vi/X09uw-aHP7A/default.jpg)
![Sign In With Apple [UIKit] | Swift 5, Xcode 11](https://i.ytimg.com/vi/vuygdr0EcGM/default.jpg)
![Universal Links | Swift 4, Xcode 10](https://i.ytimg.com/vi/IEXn7QIwPFo/default.jpg)
![Swift: MVVM Bindings Pattern (2021, Xcode 12, Swift 5, Architecture) - iOS Development](https://i.ytimg.com/vi/iI0LabCYZJo/default.jpg)
![Protocol Extensions | Swift Language Basics | Swift 4, Xcode 9](https://i.ytimg.com/vi/oqr8Wvn8tCo/default.jpg)
![Dependency Injection | Swift 4, Xcode 9](https://i.ytimg.com/vi/sHLd1BuW0aU/default.jpg)
![How Do You Write Closures in Swift?](https://i.ytimg.com/vi/fVF_tNcIhfc/default.jpg)
![Getting Started With Swift Package Manager (SwiftPM) | Swift 5, Xcode 11](https://i.ytimg.com/vi/xu9oeCAS8aA/default.jpg)
![Error Handling | Swift 5, Xcode 10](https://i.ytimg.com/vi/fhcINdzuq4A/default.jpg)
![Swift Closures: @escaping Explained](https://i.ytimg.com/vi/xiS5gJOIQxI/default.jpg)
![Key-Value Coding (KVC) | Swift 4, Xcode 10](https://i.ytimg.com/vi/KcmIcr8bvOI/default.jpg)
![iOS 13 & Swift 5 - Delegates VS Closures callbacks](https://i.ytimg.com/vi/nsWXSnlMMyA/default.jpg)
![Strong vs. Weak Swift 5: What is Weak Self (Xcode 11, 2020)](https://i.ytimg.com/vi/chI-B8u4MBs/default.jpg)
![Swift Completion Handler (Step By Step)](https://i.ytimg.com/vi/hJcUgaW6wvg/default.jpg)
![Advanced Swift Package Manager - Tim Condon - Swift Heroes 2019](https://i.ytimg.com/vi/g9bBph435Lc/default.jpg)