Swift for Beginners Part 13 - Closures

preview_player
Показать описание
iOS Academy offers the #1 course for iOS Development for Beginners. Learn to create iPhone and iPad apps from scratch. Everyone these days has an app idea; learn the important skill of making those apps, make yourself more marketable, change industries to get a different job, and enjoy the ride!

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

the most underrated channel for IOS development

easthastings
Автор

Thank you, this is by far the clearest explanation I've seen so far. Great beginner tutorial series.

AZtechify
Автор

Great explanation! For those who are still confused, If you've learned a language such as c/c++, it would be much easier to understand Closures. Basically, the notion of Closures is very similar to function pointers in c/c++.

louiswong
Автор

I have a few concerns about this video:
-Are the closures and callback functions same?
-Are there any pros/cons using normal functions (func) rather than the closures?

kamilcoban
Автор

I think I get confused because I started write JavaScript. In JavaScript I’m used to arrow function, which I assign to variable. Would that be considered a closure? 🤔

jlambert
Автор

sorry but you can also assign the function to a variable. The return type means it is also a bool.

Jeff-zcrr
Автор

I've been using closure for a long time but this really explains how everything works properly! Great job -- well done.

itchybuddy
Автор

This helped me a lot! Appreciate it 🙏🏻

paulk
Автор

can you please explain what trailing closure syntax is?

HelloPairie
Автор

hey, a question

since we can pass closures through function and we can have parameters in closures. What would would be the syntax if we wanted to call a function that had a closure that had a parameter? Like if the closure also has a parameter how would we call it so Swift can get both the parameter of the function which is a closure, and then the parameter of the closure.

- thanks a lot

HelloPairie
Автор

It hurts my eyes.. absolutely no need of zooming in and out in every 3 seconds

Natena
Автор

Hi, the last third of your video would likely make a lot more sense if you stopped referring to “this” and “that” and used syntactical names and explained why you get rid of “this” and add “that”. It would also help if you explained why closures are useful rather than just saying they turn a function into a type so you can declare them as variables. They must be useful because they’re used throughout SwifUI but they make code look like spaghetti.

richardau
Автор

You know you can get rid of the parameter name in function by adding _ before the name of the parameter when you define the function. I still don't know the difference between closures and functions ....

abdalrahmanaboujeeb
Автор

wish you didn't zoom it.. makes me feel dizzy

_ritesh
Автор

I didn’t watch your video yet but is so cool I’m so excited to watch it 😊

pjnanmirabelli
Автор

Very poorly explained. You’ve made it more confusing.

ZoeSummersA
Автор

Can you please create video for all topic available in docs.swift.org with examples at least two to three videos for each topic.

With Complete details. Coz you will go with it one time only. like you previous videos... but this time go in deep for each topic in all chapter with examples.. Cuz we understand you more than other videos present on YouTube. Thanks for this. Again Thank you so much..

Please create all concepts, then go for apps example .. you go one time, make almost perfect each topic.. not just complete the chapter like other does on YouTube .. just copy paste.. topics . Given in swift docs. . only.. No deep concept understand. Lack practical knowledge..

But you can create this in awesome ways Cuz You are different on Youtube

Create videos of every topic till all concept seems clear, , doesn't matter if it takes 5 to 10 video for each topic.. but concept should be cleared. Thank you agin for teaching the world…

makemytime
Автор

Unfortunetly this example was not understandable for me

FractalInnerExpression
Автор

Not very good explanation. All over the place. Still to find a good explanation on this subject, , , sorry!!

escoffierdesign