How to use ForEach loops in SwiftUI | Bootcamp #14

preview_player
Показать описание
ForEach statements allow us to loop over and repeat items in a SwiftUI view. In this video we will learn how to implement these using several different methods, including looping over a closed range of indices as well as a data set. As we will see, ForEach statements become extremely powerful when we working with large data sets.

For example, if we wanted to add 100 circles onto the screen, it's much easier to create 1 ForEach statement and loop of a Circle() 100 times, rather than type Circle() 100 times.

🤙 WELCOME BACK 🤙

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

Thank you, Nick!
I started watching your videos 2 days ago. I feel like I'm getting smarter!

tnoqzrn
Автор

Brother, this is the best course I have seen so far. I want to thank you for this course. I bought 2 paid courses and read lot's of books about it, but your course is the best I have seen so far. You have natural talent in my opinion !

soulmood
Автор

Hey Nick, exceptional job. I'm loving your content. The delivery is short yet detailed enough to explain clearly what is going on. I appreciate your style and humour. This Bootcamp has definitely been the most digestible I've come across (and I've been into Udemy course after Udemy course, Books, documentation) basically jumping from one learning platform to the next. I'm planning on doing your DogGram Udemy alongside this, so I have the "ingredients" version by following here, and then the full recipe to see how you structure and build out apps.

jimmyjay
Автор

bro believe me watching your swiftui tutorials are the most fun way of learning than anything i've experienced with. Your style is so easy to understand and it makes me feel ultra focused. Your the best SwiftUI teacher in the business right now period. it's a pity i didn't came to you sooner

simply
Автор

Best teacher in my coding life. Thank u, Nick!

pigang
Автор

Best SwiftUI tutorial series on Youtube

ZhengCheng
Автор

This is the best course than any other Youtube / Udemy courses

andrews
Автор

Hey Nick, thanks for your bootcamp is really awesome keep it up and God bless you in this 2024.

julianm
Автор

Wanna hear a feedback? I must ask you, Where the hell have you been all this time? We were looking for you everywhere. Good job bro. You're so self motivated. Love the content everyday.

kdtechniquesofficial
Автор

I have to agree with all the comments I've read. Nice short videos, with every concept explained very well. I do have to mention, though, that you have "backslash" and "forward slash" backwards. Backslash: \\\ Forward shash, aka slash: ///

MrCosine
Автор

You're great bro. Your approach works too, I'm learning how to do things better than other tutorials that try to build an app simultaneously. Amazing explanations and teaching ability. Love your videos. Would recommend to anyone! Thank you for sharing these for free.

Hitchxi
Автор

Of course, I do not know English well, but I watch this course with pleasure.
I think you should teach

ZefsAl
Автор

Thank you Nick. Definitely best SwiftUI Bootcamp tutorial series on YouTube.
Do you have a LinkedIn account? Have a nice day bro.
Sometimes I think I can access it faster when I want to ask a question.

AlicanTarm
Автор

Explanation is cool, thanks for sharing the knowledge

InvestHyd
Автор

Hey Nick! I just want to thank you for making these courses. You do a great job explaining the information. Hopefully an old dog can learn new tricks as I am an old dog. FYI, my first computer was a Commodore 64. Lol. Anyways, I’m doing my best to learn what I can but I just started and have a long way to go. I took a peek at one of your advanced courses and I hope I will eventually get there. My goal isn’t to become a software engineer for a company or anything, but rather design some personal apps that function well. Again I just want to say thanks.

eguerra
Автор

You did a great job! The best course for beginners ever!

pavel..
Автор

You are so amazing !!!!
love from INDIA

cunddxu
Автор

I am loving this course. I started learning code with Python, and quickly found out that Swift does not have that many resources for learning such as Python does. Documentation for SwiftUI can also be a little difficult.

Your method is very good. I find it best to start as you did, with the basic UI design, and moving to logic and coding from thereon. The courses I found and followed started with app development, and had you copying complicated code from Apple Dev documentation without you understanding much, not even the basic syntax.

I hope you also create some written notes or cheat sheets. I like cheat sheets :D.

Also stay safe and keep doing what you do. Cheers!

mihneagane
Автор

VStack(spacing: 20) {
Text(greeting)
ForEach(data.indices, id: \.self) { index in
Text("\(data[index]) \(index)")
}
}

ProgramJerol
Автор

Nick - good stuff. Just a quickie - I was taught that '\' is a backslash and '/' is a forward slash. You seem to have it the other way around?

brucknerdevilliers