Before finding this course, I had been compulsively searching the web for a course that is free, covers ALL the basic foundations, and goes in depth on each topic. This is the only thing I've found that has all three of them. I am so grateful for you and these videos. I know this has helped so many people
"Let's get stacking!" I prefer ZStacks to backgrounds. Partly, because they make sense to me and partly because they seem to respect the boundaries of stacks they are placed inside (in your last example, the background circle goes over the edge of the VStack).
Your content is pure gold. You teach and go about explaining things in a "declarative" form that is very high level and greatly detailed! You really have great structure and everything makes perfect sense. Hope your next Udemy course can be a "real" full bootcamp of this caliber and depth.
It is very rare that I see such level of organization and clear explanation, please do not stop. I would love to see a Swift language course for beginners/intermediate/advanced levels in your channel, I am pretty sure you will rock it.
I think you could have also mentioned that you can only place a max of 10 things in each stack. Because the error it gives you when you add 11 things is not clear and I spent hours trying to find out what was wrong. Anyway still an amazing video. All your vids are great. Explained so clearly. The best that I’ve found so far.
I can't thank you enough for this series. I don't understand at all why so few likes are given here. I had already gone through other introductions to Swift, but didn't really feel able to implement given layouts. Now after the first 10 episodes of your series, light comes into the dark. I still have a whopping 44 chapters ahead of me, which will probably be a kind of pressure fueling - but in a pleasant way, I'm really looking forward to it. Thanks again!
Thank you! I followed along in Xcode, I feel like a expert on stacks now, very informative. Best video on stacks I’ve ran across so far. Great job! 👍🏽 Highly grateful.
Nick, I took some other intro courses to SwiftUI. Never really got the grasp of stacks until i saw this video. Thank you so much for the clear explanation.
I'm studying SwiftUI for a one month now and I know a lot of stuff, but I realized that I didn't learn some of the basic stuff like alignment an others, thinks that you teach very well!! I wish I had started to learn from you! Thanks
I like how you show things and explain really well in which situations the things you are showing are used the right way in your opinion. For example the .background()/.overlay() vs. the ZStack. Great work!
Really great job on your videos and playlists! This is exactly what I needed as someone who was in the process of learning UIKit but decided to switch to over to SwiftUI. I could see you being one of the major go tos for iOS and Swift training in the future and the top answer when someone asks in a developer forum how they start learning iOS app development. Amazing content!
Idk if somebody noticed it or not, but if we use ZStack then the size of the circle is included into the ZStack. ZStack adapts its width and height to the items it has inside but with the background we can see that it includes into VStack only the number and not the circle, which makes setting up the spacing a bit more confusing. I think the background function is supposed to be used only when you want to make a background and when spacing doesn't matter and in all other cases, ZStack is the way to go.
I hope this course eventually talks about responsive design. I've yet to find good resources for learning to make sure my UI looks good across all screen sizes
Thank you so much for doing this. I might feel a little slow to you or those watching, meticulously going through all options is so helpful. Especially, this video. Using Stacks versus Overlays and Backgrounds is an important question. Yes you can use them interchangeably, sometimes, it important to understand the differences and the possible reasons why you might want to use one over the other.
Super helpful! Thanks a lot Nick! I believe Stacks can be used where there is a complex layout with collection views, scrollable views, table views etc... and background and overlays at component level ( titles with transparent backgrounds, buttons and badges , menu items and so on )
Yea I agree. I think as you keep coding you get a feel for which is better in which situation. An important difference is that the frame of the ZStack will be as large as the largest object inside. While if you have an object and add a background that is larger, the frame of the object will stay the same and only the background will have the larger frame!
Hi Ostan! Yea, ZStack is very easy to use. I find that the .background() code is a little cleaner/less chunky so I've been using it more and more. Thanks for watching!
I can't figure out what I've prefer: in both methods are deprecated (some)groundColor moving into Style, .frame is also change its appearance. But background looks so Sketch/Figma style so it is modern :)
It looks as though the VStack is only tracking the frame for the Text("1") and not measuring off of the circle as well, which is my guess as to why there is a overlap of the circles at 19:44. Do I have that correct?