Hey Nick, I found your channel , I have been following your videos, I am a beginner in terms of swift UI , however your how to videos are giving me a lot of information that I could not find in other you tubers with similar approach, keeps this wonderful work up Nick, thank you so much for doing this in such a great way
Hey... well I'm very glad you found my channel. I try to answer all comments personally so don't hesitate to leave a comment if you every get stuck or confused!
This was my favorite lesson so far. Modified it slightly using ZStack to display the Row and Column number on each rectangle and also changed the color of each rectangle based on row and column. Modified code is below if anyone is curious: ScrollView { LazyVStack { ForEach(0..
If we align the Vstack to .leading and add a line of text like a section, before the horizontal scrollview, the page gets really cool. Thanks Nick! All these clips are so nicely put together!
"I may have just had too much coffee" 😂. Thank you, you're the bomb Nick! i found your videos trying to get more information on some concepts a class I was in didn't quite cover. Now I'm going through each video in the series because you give so much more detail and information that i haven't seen anywhere else.
Keep going over the same concepts (e.g., opening the files, connecting, etc.). It’s super helpful to reinforce. Might also want to substitute shortcuts everyone once in a while.
Yea, sorry about that. Although they are in order, I try to make each video independent so that viewers can jump in and start any video with a new file. I try to also build on each video with previous topics so that you can get more comfortable with some of the previously covered material.... Anyway, I will try to give some hints when I repeat some set up information for people following along :)
OMG, Nick, thank you providing such great content, you are amazing, and that's really fun of learning the ScrolVview tool, wonderful, so cool so good, love it.
Hi Nick, Thank you for all awesome instructional videos. in your example around minute 8:37 in the video , can we have horizontal scrollview with declining columns, starting first row with 20 columns, second row with 19 columns, ...the last row with 10? In other words, in the ForEach loop instead of a static range of (0..
Hey Nick. Kudos to you man!! You are doing amazing job. I have one doubt in this video. When we make HStack or VStack as lazy, will it reuse the same views like in tableviews and collection views? or it will create a new view. What if we don't make the stack lazy and will it reuse or create an individual views for all index?
Hi Nick, Love your teaching style. Thank you for all the videos! I’m really struggling to add lists to scroll views in SwiftUI. Essentially, we have to give the list a height because by default it doesn’t show. Given each list item could have a different height and the number of items is the list can change, this appears impossible to figure out. Can you make some suggestions or do a video on this please ? 🙏🏼
Haha great question! I just did it here because it's such simple code. If we're building a screen with a lot of rows that you don't want to load all at once, we should definitely be using Lazy stacks.
@@SwiftfulThinking yeah I get it but again why not using it all the time 😂? It’s a little bit weird^^ I am brand new to SwiftUI honestly but nevermind… I am gonna use lazy Stacks in case there are a lot of rows etc…In generell I love your vids and the music at the beginning (Mexican style 😂).
@@Sengardisback Did you get any idea on this? After reading your comment, I am also wondering the same, why not to use lazy stack always as thumb rule.
Hey man! I'm new here, and I love your videos! I started from the beginning, and I'm here now after 2 days. I want you to know how much you're helping me... Thank you!
One off-topic question... What's your machine? Because I'm using a brand new MBP 16" M1 Max, and when I added the extra '0' at 09:43 (before changing to LazyVStack), Xcode just froze up. I tried it a couple of time (plugged in, High Power) while looking at my hardware. Although nothing was overloaded (15% cpu, 35 - 45% memory, SSD almost idle), Xcode still froze up and I had to force quit every time. But I can see yours is working fluidly with live preview on and everything...
Hello Nick, you explain each concept really well, I appreciate that. I was working with UIKit past 4 months (I'm still learning and creating portfolio projects). I am familiar with Flutter and worked on a project and liked SwiftUI compared to the UIKit. I want to know your thoughts about will companies switch from UIKit to SwiftUI in the next 3 years or less?
My opinion is that SwiftUI > UIKit > Flutter. Apps are already starting to switch to SwiftUI honestly. It really just depends on the company. Larger, more established codebases don't really need to rewrite the code unless they are making big changes. However, many new features and apps are being done in SwiftUI. I think in the coming years, SwiftUI developers will be in much higher demand.
Another nice video, thanks. I have a question on ScrollView() Let's say we have horizontal and vertical ScrollView as you did at the end of video. Questions: 1. When I scroll Horizontal row, I want to see the full piece of one RoundedRectangle in screen, I mean I don't want rectangles to be splited in the screen when I stop scrolling. 2. When a horizontal row is in the 3rd rounded rectangle let's say and I scrolled vertically this time. When the upper horizontal row is out of sight of the screen, I want that row to be return to the original state (first rounded rectangle on the row is displayed when I vertically scroll back) How that those possible? I hope you understand what I mean.
Hi Ben, there is no built-in way to do this in SwiftUI. So it's a bit more complex and too difficult to explain in a comment here. If you are just learning SwiftUI, my recommendation would be to stick with the default implementations of all components until you are more comfortable and can start customizing them. Otherwise you'll spend a lot of time trying to make one small feature like this. Sorry I couldn't be more help. Nick
Hello, love your channel, one question ¿is there any way to individually modify each Rounded Rectangle, to put a picture or something? or to do it it has to be coded in another way ? thanks bye!
Yes of course you can use any view. The Rectangle is just a placeholder here haha. I would recommend watching this playlist in chronological order and all your questions will be answered 🤓
The intro music makes my day I swear to GOD
The intro music makes me cringe 😆 but the lessons make it worth it. Thanks, Nick, for all of this.
Love the little Salsa jingle! Makes me wanna dance.👯
Coming from web development, the way you add lazy loading in Swift is a bliss!!
Hey Nick, I found your channel , I have been following your videos, I am a beginner in terms of swift UI , however your how to videos are giving me a lot of information that I could not find in other you tubers with similar approach, keeps this wonderful work up Nick, thank you so much for doing this in such a great way
Hey... well I'm very glad you found my channel. I try to answer all comments personally so don't hesitate to leave a comment if you every get stuck or confused!
This was my favorite lesson so far. Modified it slightly using ZStack to display the Row and Column number on each rectangle and also changed the color of each rectangle based on row and column. Modified code is below if anyone is curious:
ScrollView {
LazyVStack {
ForEach(0..
I’m glad you pushed through those first few lessons! It only gets better from here 🤙
If we align the Vstack to .leading and add a line of text like a section, before the horizontal scrollview, the page gets really cool. Thanks Nick! All these clips are so nicely put together!
"I may have just had too much coffee" 😂. Thank you, you're the bomb Nick! i found your videos trying to get more information on some concepts a class I was in didn't quite cover. Now I'm going through each video in the series because you give so much more detail and information that i haven't seen anywhere else.
Such a useful thing. Thank you for another great tutorial
Keep going over the same concepts (e.g., opening the files, connecting, etc.). It’s super helpful to reinforce. Might also want to substitute shortcuts everyone once in a while.
Yea, sorry about that. Although they are in order, I try to make each video independent so that viewers can jump in and start any video with a new file. I try to also build on each video with previous topics so that you can get more comfortable with some of the previously covered material.... Anyway, I will try to give some hints when I repeat some set up information for people following along :)
I drank way too much coffee.
Great set of training videos, nick. Really enjoying them.
YES: supper cool...this is amazing, NOW to put it to practical use. loading data into each field???
Bought you 3 coffees cause your the best teacher! Keep up the good work…..bob
Awesome tutorials Nick!
Thank you!!
This series is great thanks Nick!
OMG, Nick, thank you providing such great content, you are amazing, and that's really fun of learning the ScrolVview tool, wonderful, so cool so good, love it.
The best channel! I’m learning a lot here. Thank you very much!
Lazy stacks are just awesome⚡
Hi Nick, Thank you for all awesome instructional videos. in your example around minute 8:37 in the video , can we have horizontal scrollview with declining columns, starting first row with 20 columns, second row with 19 columns, ...the last row with 10? In other words, in the ForEach loop instead of a static range of (0..
This keep motivating giving me new hope. I love it
Nick , Thank you very much for a very helpful explanation for us
Nice video ! How would you create a scrollview in a TabView setting so that the scrollview does not override the bottom Tabs ?
Thanks Nick for an amazing content. You’re literally making my iOS journey way easier 🙏🤗
You got this 🚀🤙
thanks again Nick your the absolute goat!
Hey Nick. Kudos to you man!! You are doing amazing job. I have one doubt in this video. When we make HStack or VStack as lazy, will it reuse the same views like in tableviews and collection views? or it will create a new view. What if we don't make the stack lazy and will it reuse or create an individual views for all index?
Thank you from France Nick 🇫🇷
your efforts are really helpful to me! Thx!!!
Hi Nick,
Love your teaching style. Thank you for all the videos!
I’m really struggling to add lists to scroll views in SwiftUI. Essentially, we have to give the list a height because by default it doesn’t show. Given each list item could have a different height and the number of items is the list can change, this appears impossible to figure out.
Can you make some suggestions or do a video on this please ?
🙏🏼
Dude you're the best, seriously
Lazy keyword is awesome !
Thank you Nick...
Awesome tutorial, thanks!
Scrollviews are awesome and so is Coffee 😀
Hey Nick, why not using LazyV/HStacks evertime? Is there any advantage of the usual V/HStacks compared to the lazy ones ?
Best regards from Germany✌🏻
Haha great question! I just did it here because it's such simple code. If we're building a screen with a lot of rows that you don't want to load all at once, we should definitely be using Lazy stacks.
@@SwiftfulThinking yeah I get it but again why not using it all the time 😂? It’s a little bit weird^^ I am brand new to SwiftUI honestly but nevermind… I am gonna use lazy Stacks in case there are a lot of rows etc…In generell I love your vids and the music at the beginning (Mexican style 😂).
@@Sengardisback Did you get any idea on this? After reading your comment, I am also wondering the same, why not to use lazy stack always as thumb rule.
@@anmol-suneja after 2 years I have still no clue to be honest.
Hey man! I'm new here, and I love your videos!
I started from the beginning, and I'm here now after 2 days. I want you to know how much you're helping me...
Thank you!
This was really helpful
One off-topic question...
What's your machine?
Because I'm using a brand new MBP 16" M1 Max, and when I added the extra '0' at 09:43 (before changing to LazyVStack), Xcode just froze up.
I tried it a couple of time (plugged in, High Power) while looking at my hardware. Although nothing was overloaded (15% cpu, 35 - 45% memory, SSD almost idle), Xcode still froze up and I had to force quit every time.
But I can see yours is working fluidly with live preview on and everything...
Hello Nick, you explain each concept really well, I appreciate that. I was working with UIKit past 4 months (I'm still learning and creating portfolio projects). I am familiar with Flutter and worked on a project and liked SwiftUI compared to the UIKit. I want to know your thoughts about will companies switch from UIKit to SwiftUI in the next 3 years or less?
My opinion is that SwiftUI > UIKit > Flutter. Apps are already starting to switch to SwiftUI honestly. It really just depends on the company. Larger, more established codebases don't really need to rewrite the code unless they are making big changes. However, many new features and apps are being done in SwiftUI. I think in the coming years, SwiftUI developers will be in much higher demand.
Thank you for the video
Nick on coffee = Good
Need. More. Coffee.
Nah man, unless it's post 4PM, always a chance for good coffee lol. Especially when coding apps.
you are doing a great job mr. thank you very much
Thanks ONE Pack :)
Another nice video, thanks. I have a question on ScrollView()
Let's say we have horizontal and vertical ScrollView as you did at the end of video. Questions:
1. When I scroll Horizontal row, I want to see the full piece of one RoundedRectangle in screen, I mean I don't want rectangles to be splited in the screen when I stop scrolling.
2. When a horizontal row is in the 3rd rounded rectangle let's say and I scrolled vertically this time. When the upper horizontal row is out of sight of the screen, I want that row to be return to the original state (first rounded rectangle on the row is displayed when I vertically scroll back)
How that those possible?
I hope you understand what I mean.
Hi Ben, there is no built-in way to do this in SwiftUI. So it's a bit more complex and too difficult to explain in a comment here. If you are just learning SwiftUI, my recommendation would be to stick with the default implementations of all components until you are more comfortable and can start customizing them. Otherwise you'll spend a lot of time trying to make one small feature like this. Sorry I couldn't be more help. Nick
@@benceylan273 They added a new feature in ios17!
Did that solve it for you?
Snapping!
@@chezchezchezchez yes definitely :) That's what I was exactly looking for.
I had my Display Contrast on in Accessibility and I was so confused at the end lol It was just a white screen to me.
how can we add activity indicator(with show more button will be more convenient) when the LazyVStack/LazyHStack get trigger everytime to fetch data?
Thank you, how to make auto scroll?
You can use a ScrollView reader and add some animation! I covered it here: th-cam.com/video/ZkOvD3okAJo/w-d-xo.html
awsome bro..😇
Hello, love your channel, one question ¿is there any way to individually modify each Rounded Rectangle, to put a picture or something? or to do it it has to be coded in another way ? thanks bye!
Yes of course you can use any view. The Rectangle is just a placeholder here haha. I would recommend watching this playlist in chronological order and all your questions will be answered 🤓
I added some simple code to Nick's to show the Row & Column no's. Looks like this:
Here's the code: ScrollView {
How about syncing scrollviews?
dude you are a god. I take a knee a salute you.
😂 bro you’re just getting started… wait till you get to the advanced videos 🫡
Too much coffeeeee && awesome videos
you are awesome!
Merci beaucoup, très intéressant
merci d'avoir regardé!
super
Thank you !!!
You are welcome 최승기 :)
Dubble RESPECT
Thanks Ronny 👊
Any reason why ScrollView bounces and doesn't let me scroll all the way down?
Your LazyVStack should be embedded inside the scrollview not before it
niceeee
great
Thank!
Welcome!
Nick Can you recommend a book for me to read along with your helpful explanation 🤎🤎?
Thank you!!
niceeeee