VStack, HStack, and ZStack in SwiftUI | Bootcamp #10

  Рет қаралды 43,275

Swiftful Thinking

Swiftful Thinking

Күн бұрын

Пікірлер: 98
@shannonramirezslater4909
@shannonramirezslater4909 3 жыл бұрын
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
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Thanks Shannon! Happy to help :)
@jean-michelnogaro7471
@jean-michelnogaro7471 Жыл бұрын
J'ai même cherché des solutions payantes pour ma part et elles n'ont pas cette pédagogie progressive .. Merci !!
@yokohibarashi1386
@yokohibarashi1386 3 жыл бұрын
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.
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Wow, thank you Yoko! My next few courses are going to be free on KZbin instead :) Thanks for watching.
@AhmadShrif
@AhmadShrif 3 жыл бұрын
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.
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Haha thanks for watching Ahmad!
@muhammadziaulqamar1753
@muhammadziaulqamar1753 Жыл бұрын
Love the way you teach. The best ever teacher I have in my entire life.
@muhammadnasser2735
@muhammadnasser2735 3 жыл бұрын
I don't have money now, but the first time I get the money, I will support you with everything I have You deserve more than this you are a hero
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
😂 Haha thanks Mohammed!
@kainerda2088
@kainerda2088 3 жыл бұрын
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!
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Haha hi Kai! Thanks for the comment. Really glad you're enjoying. I can't wait to hear what you think as you get further into it 🥳
@fre.helfer
@fre.helfer 2 жыл бұрын
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
@jaleellawhorn7848
@jaleellawhorn7848 2 жыл бұрын
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.
@dr.craigcurphey4829
@dr.craigcurphey4829 3 жыл бұрын
You're generating these videos faster than I can assimilate them. But don't worry - you're doing a great job and I will learn them all.
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Haha awesome! The videos build on each other, so I would definitely recommend watching them in order.
@CMessineo
@CMessineo 9 ай бұрын
"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).
@fbcreativemedia
@fbcreativemedia 7 ай бұрын
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.
@dsquared7100
@dsquared7100 3 жыл бұрын
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!
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Wow haha Thanks for the comment Darren! I'm really glad these videos are helping.
@JasonEyermann
@JasonEyermann Жыл бұрын
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.
@youngdomsey
@youngdomsey 6 ай бұрын
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!
@olepetersen4460
@olepetersen4460 3 жыл бұрын
Thanks again - I use backgrounds for the simpler elements and stacks to put them together on the screen.
@larenmarkdcruz7074
@larenmarkdcruz7074 20 күн бұрын
Adding a comment... This is pretty cool course! Getting familiar with SwiftUI! Thanks Nick!
@AZMerf
@AZMerf 3 жыл бұрын
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.
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
You are welcome Merrill! Let me know if you ever have any questions, I'm happy to help.
@malfoy2797
@malfoy2797 Жыл бұрын
2 Years later still the best for a beginner
@saweekmusic
@saweekmusic 8 ай бұрын
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.
@georgerevell5643
@georgerevell5643 Жыл бұрын
I used to use easy peasy but now junior az storyboard technique, now I'm learing this thanks to this great course.
@DannyBoy443
@DannyBoy443 7 ай бұрын
The 3rd one, we'll keep it 100 lol. Nice
@amandadias2078
@amandadias2078 Жыл бұрын
Thank you so much for this bootcamp! you are a great teacher!!!
@MrShumylo
@MrShumylo Жыл бұрын
Love every single video! Such a cool Bootcamp! Thanks a lot for doing a great job!
@muhammadnasser2735
@muhammadnasser2735 3 жыл бұрын
hey man this is really cool you are very creative (i think your channel will reach 1 million subscribers soon)
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
LOL that's a long way away 🥲
@Bryan-lu4du
@Bryan-lu4du 9 ай бұрын
Thank you for explaining this in a way people like me can understand. I subscribed and look forward to learning more.
@alextoma402
@alextoma402 Жыл бұрын
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
@bobbynwm
@bobbynwm Жыл бұрын
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 )
@SwiftfulThinking
@SwiftfulThinking Жыл бұрын
Exactly! Stacks are core to any SwiftUI screen
@bobbynwm
@bobbynwm Жыл бұрын
Thank you!
@Dragonboh1
@Dragonboh1 2 жыл бұрын
Dude, keep doing what you doing
@JasonOoiTC
@JasonOoiTC 3 жыл бұрын
Thank you! Very well explained, super easy to understand :-)
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Thanks Jason!! :)
@ShowMeLova
@ShowMeLova 11 ай бұрын
You are the best Nick! Thanks a lot
@magedmohmed4403
@magedmohmed4403 2 жыл бұрын
Thank You , I want to Thank You very much , your explanation is very helpful , magic basics , magic explanation
@sergehulne
@sergehulne Жыл бұрын
Very informative and well presented!
@mafiaboy16
@mafiaboy16 2 жыл бұрын
Hi Nick, i will go with both Thnx for the BootLesson it’s super
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Nice. Good luck Ronny!
@balarajan3110
@balarajan3110 3 жыл бұрын
Awesome videos boss
@leneil46
@leneil46 Жыл бұрын
These videos are great. Thank you so much
@Stevesvideoshelf
@Stevesvideoshelf 3 жыл бұрын
I feel like ZStacks are more intuitive for stacking and backgrounds/Overlays for styling. Anyway, great lesson, as always!
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
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!
@Stevesvideoshelf
@Stevesvideoshelf 3 жыл бұрын
@@SwiftfulThinking good to know. Thanks! 👍
@manzoorahmadfarmani6558
@manzoorahmadfarmani6558 2 жыл бұрын
thanx for this course and background and overlay is easy to use.
@pitmanra
@pitmanra 3 жыл бұрын
Thanks for the videos. Well done!
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Thank you @pitmanra!
@heshamabdo6024
@heshamabdo6024 2 жыл бұрын
This channel made me love coding IOS
@ryanlanigan417
@ryanlanigan417 11 ай бұрын
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?
@kasunjayasekara3052
@kasunjayasekara3052 3 жыл бұрын
Thank you :) learned key points very quickly .
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Thanks my goal. Thanks for watching!
@valerieokelly6224
@valerieokelly6224 2 жыл бұрын
Great video man !
@conorspalvieri5948
@conorspalvieri5948 2 жыл бұрын
These videos are so helpful thank you so much!!!!!!
@knowledgeispower4953
@knowledgeispower4953 10 ай бұрын
clear understanding...😎thx bro
@mig12394
@mig12394 3 жыл бұрын
I prefer the second one , now that I know that background is a view !
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Haha, yea I love using backgrounds too! You just need to be make sure you are aligning all the frames correctly.
@m__link6499
@m__link6499 3 жыл бұрын
Me too..
@JPkatukenda
@JPkatukenda 2 жыл бұрын
Thank you nick, super video series
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Thanks Katukenda!
@Hydatidosis
@Hydatidosis 7 ай бұрын
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 :)
@itsAJ819
@itsAJ819 3 жыл бұрын
1:23 Lucky I like your content 😆
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
haha thanks AJ
@Chilldeck
@Chilldeck Жыл бұрын
ZStacks for the win! Correct answer ;)
@DannyBoy443
@DannyBoy443 7 ай бұрын
14:05 is looking like a high end NY piece of abstract art lol
@최승기-g8f
@최승기-g8f 3 жыл бұрын
Thank you!!!
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
You're welcome!
@JustThink2000
@JustThink2000 2 жыл бұрын
Is it true to say, the purpose of stacks is just like what we would find in css flex box - their purpose is to maintain uniformity on all screens?
@kellenrayoungx
@kellenrayoungx Жыл бұрын
How do you move a VStack or just a button up and down on the screen? I am unable to drag and drop buttons etc in my SwiftViews
@SwiftfulThinking
@SwiftfulThinking Жыл бұрын
As you continue this playlist, you will learn how to move items around the screen and align them to each other!
@nomadeducator6684
@nomadeducator6684 Жыл бұрын
must have basics, thx man
@ostanjaffcompany173
@ostanjaffcompany173 3 жыл бұрын
ZStack is easier for me. But I use .background() modifier as well from time to time. Thanks for the video.
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
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!
@loudibird
@loudibird Жыл бұрын
your a legend thanks
@NaveedGhalib
@NaveedGhalib 11 ай бұрын
awesome video. thanks!
@yuchen3587
@yuchen3587 2 жыл бұрын
Respect bro 瑞思拜
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
谢了,兄弟 !
@JustThink2000
@JustThink2000 2 жыл бұрын
This was so helpful
@JulienReszka
@JulienReszka Жыл бұрын
Very cool
@raquelcervantes3332
@raquelcervantes3332 Жыл бұрын
you just explained so many topics i was struggling to understand and now i feel more confident to learn even more
@mirjalolsirojiddinov3043
@mirjalolsirojiddinov3043 Жыл бұрын
i'd never worked with Overlays & Backgrounds instead of ZStack)
@LindaWhite-y8l
@LindaWhite-y8l 2 ай бұрын
Rodriguez Estates
@mvfeast
@mvfeast Жыл бұрын
I prefer ZStacks, It's easier for me to understand the code.
@mr_funtor
@mr_funtor 3 ай бұрын
It's ZStack for me
@AbhinavSagar-x7e
@AbhinavSagar-x7e Ай бұрын
I prefer Z stack
@dugrut1325
@dugrut1325 2 жыл бұрын
Zed - stack haha, Canada
@sharifboymuminov9734
@sharifboymuminov9734 Жыл бұрын
Assalomu aleykum
@ClintonSiegel
@ClintonSiegel 2 жыл бұрын
Ha ha!
@marshallross
@marshallross 2 жыл бұрын
var StacksOnStackOnStacks = 🤪🤪🤪🤪🤪💸💸💸💸💸💸()
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
🤑
@krzysiek4795
@krzysiek4795 2 жыл бұрын
Thanks for the videos. Well done!
Adding Padding in SwiftUI View | Bootcamp #11
11:33
Swiftful Thinking
Рет қаралды 32 М.
How to use inits and enums in SwiftUI | Bootcamp #13
19:30
Swiftful Thinking
Рет қаралды 42 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 12 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 11 МЛН
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 124 МЛН
SIZE DOESN’T MATTER @benjaminjiujitsu
00:46
Natan por Aí
Рет қаралды 5 МЛН
LazyVGrid, LazyHGrid, and GridItems in SwiftUI | Bootcamp #16
22:16
Swiftful Thinking
Рет қаралды 47 М.
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,6 МЛН
How to use Spacer in SwiftUI | Bootcamp #12
14:19
Swiftful Thinking
Рет қаралды 28 М.
How to use ForEach loops in SwiftUI | Bootcamp #14
13:30
Swiftful Thinking
Рет қаралды 40 М.
SwiftUI GeometryReader
27:53
Stewart Lynch
Рет қаралды 12 М.
Backgrounds and Overlays in SwiftUI | Bootcamp #9
18:20
Swiftful Thinking
Рет қаралды 47 М.
How to use NavigationStack in SwiftUI | Bootcamp #62
23:59
Swiftful Thinking
Рет қаралды 37 М.
SwiftUI AlignmentGuides
21:50
Stewart Lynch
Рет қаралды 4,4 М.
I Made an iOS App in MINUTES with This AI Tool!
13:20
Creator Magic
Рет қаралды 296 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 12 МЛН