Swift Basics - Closures

preview_player
Показать описание
When starting your Swift or SwiftUI journey understand Closures are a must.

In this video we will briefly go over basic closures.

You will know:
-What a closure is.
-How to make a basic closure.
-How to accept a parameter into a closure.
-How to return a value from a closure.
-How to pass a closure as parameters.

If you wanted to take a look at a Swift function video the link is below.

NEXT UP: Structs
Click the link below to watch now

Рекомендации по теме
Комментарии
Автор

I’ve watched numerous videos trying to get my head around closures. This was the one video where I finally got it. Thank you!

ronnykristensen
Автор

I’ve watched dozens of videos on closures and for some reason, I could not grasp it until this one. Thanks for not using the Sort routine in your example lol. Great job!

MarvelousLXVII
Автор

Thanks for the Swift Basics. Yes, closures are the first big 'let's ignore this for a while'. But thanks to this well arranged video there's hope.

doroparker
Автор

Thank you, this is one of the best videos I have seen on closures. I am finally starting to get it

Seth_Arvila
Автор

The best explanation of using closures I've seen. Thanks a lot.

maxillusion
Автор

Pretty well explained. Thank you so much.

MuhammadSultan
Автор

Deserved my subscribe for well explained basics of Closures. Gonna watch other videos.

Natena
Автор

You explained it perfectly, well done !

giorgigogichaishvili
Автор

Very well explained, thank you. I had to leave a LinkedIn learning course of swift essentials to expand on this before moving forward… maybe I can go back now and rewatch it with a better understanding…

adriangutierrez
Автор

I knew closures are similar to Python's Lambdas, but the Swift documentation by Apple makes them sound so much more complicated. I was about to also skip them until later, but this video makes them easy to understand.

RioXavier
Автор

thank you for your explanation! i really liked it :)

marinaalecriim
Автор

Can you make a video on Optional Closures as well. It would be helpfulll

shreesharao
Автор

Can’t you move functions around as well just like closures? Use a function within another function? I am confused because everyone seems to call out the ability of closures to be move around compared to functions insinuating that functions can’t be moved around?!

FRkiddo