Тёмный

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

Swiftful Thinking
Подписаться 50 тыс.
Просмотров 41 тыс.
50% 1

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 96   
@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 !!
@CMessineo
@CMessineo 7 месяцев назад
"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).
@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 RU-vid 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!
@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.
@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.
@muhammadziaulqamar1753
@muhammadziaulqamar1753 Год назад
Love the way you teach. The best ever teacher I have in my entire life.
@kainerda2088
@kainerda2088 2 года назад
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 2 года назад
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 🥳
@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.
@fbcreativemedia
@fbcreativemedia 6 месяцев назад
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.
@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
@olepetersen4460
@olepetersen4460 3 года назад
Thanks again - I use backgrounds for the simpler elements and stacks to put them together on the screen.
@youngdomsey
@youngdomsey 4 месяца назад
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!
@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.
@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!
@Bryan-lu4du
@Bryan-lu4du 8 месяцев назад
Thank you for explaining this in a way people like me can understand. I subscribed and look forward to learning more.
@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 🥲
@saweekmusic
@saweekmusic 6 месяцев назад
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.
@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
@MrShumylo
@MrShumylo Год назад
Love every single video! Such a cool Bootcamp! Thanks a lot for doing a great job!
@JasonOoiTC
@JasonOoiTC 3 года назад
Thank you! Very well explained, super easy to understand :-)
@SwiftfulThinking
@SwiftfulThinking 3 года назад
Thanks Jason!! :)
@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.
@georgerevell5643
@georgerevell5643 Год назад
I used to use easy peasy but now junior az storyboard technique, now I'm learing this thanks to this great course.
@amandadias2078
@amandadias2078 Год назад
Thank you so much for this bootcamp! you are a great teacher!!!
@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!
@mafiaboy16
@mafiaboy16 2 года назад
Hi Nick, i will go with both Thnx for the BootLesson it’s super
@SwiftfulThinking
@SwiftfulThinking 2 года назад
Nice. Good luck Ronny!
@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! 👍
@melroy36
@melroy36 11 месяцев назад
2 Years later still the best for a beginner
@DannyBoy443
@DannyBoy443 5 месяцев назад
The 3rd one, we'll keep it 100 lol. Nice
@balarajan3110
@balarajan3110 3 года назад
Awesome videos boss
@kasunjayasekara3052
@kasunjayasekara3052 3 года назад
Thank you :) learned key points very quickly .
@SwiftfulThinking
@SwiftfulThinking 3 года назад
Thanks my goal. Thanks for watching!
@manzoorahmadfarmani6558
@manzoorahmadfarmani6558 2 года назад
thanx for this course and background and overlay is easy to use.
@ShowMeLova
@ShowMeLova 9 месяцев назад
You are the best Nick! Thanks a lot
@knowledgeispower4953
@knowledgeispower4953 8 месяцев назад
clear understanding...😎thx bro
@magedmohmed4403
@magedmohmed4403 2 года назад
Thank You , I want to Thank You very much , your explanation is very helpful , magic basics , magic explanation
@pitmanra
@pitmanra 3 года назад
Thanks for the videos. Well done!
@SwiftfulThinking
@SwiftfulThinking 3 года назад
Thank you @pitmanra!
@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..
@sergehulne
@sergehulne Год назад
Very informative and well presented!
@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!
@NaveedGhalib
@NaveedGhalib 10 месяцев назад
awesome video. thanks!
@Dragonboh1
@Dragonboh1 Год назад
Dude, keep doing what you doing
@nomadeducator6684
@nomadeducator6684 Год назад
must have basics, thx man
@conorspalvieri5948
@conorspalvieri5948 2 года назад
These videos are so helpful thank you so much!!!!!!
@leneil46
@leneil46 Год назад
These videos are great. Thank you so much
@최승기-g8f
@최승기-g8f 3 года назад
Thank you!!!
@SwiftfulThinking
@SwiftfulThinking 3 года назад
You're welcome!
@DannyBoy443
@DannyBoy443 5 месяцев назад
14:05 is looking like a high end NY piece of abstract art lol
@itsAJ819
@itsAJ819 3 года назад
1:23 Lucky I like your content 😆
@SwiftfulThinking
@SwiftfulThinking 3 года назад
haha thanks AJ
@loudibird
@loudibird Год назад
your a legend thanks
@JustThink2000
@JustThink2000 2 года назад
This was so helpful
@JPkatukenda
@JPkatukenda 2 года назад
Thank you nick, super video series
@SwiftfulThinking
@SwiftfulThinking 2 года назад
Thanks Katukenda!
@Hydatidosis
@Hydatidosis 6 месяцев назад
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 :)
@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
@valerieokelly6224
@valerieokelly6224 2 года назад
Great video man !
@yuchen3587
@yuchen3587 2 года назад
Respect bro 瑞思拜
@SwiftfulThinking
@SwiftfulThinking 2 года назад
谢了,兄弟 !
@heshamabdo6024
@heshamabdo6024 Год назад
This channel made me love coding IOS
@Chilldeck
@Chilldeck Год назад
ZStacks for the win! Correct answer ;)
@ryanlanigan417
@ryanlanigan417 10 месяцев назад
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?
@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?
@mirjalolsirojiddinov3043
@mirjalolsirojiddinov3043 Год назад
i'd never worked with Overlays & Backgrounds instead of ZStack)
@kellenrayoungx
@kellenrayoungx 11 месяцев назад
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 11 месяцев назад
As you continue this playlist, you will learn how to move items around the screen and align them to each other!
@LindaWhite-y8l
@LindaWhite-y8l 19 дней назад
Rodriguez Estates
@mvfeast
@mvfeast Год назад
I prefer ZStacks, It's easier for me to understand the code.
@mr_funtor
@mr_funtor 2 месяца назад
It's ZStack for me
@dugrut1325
@dugrut1325 2 года назад
Zed - stack haha, Canada
@sharifboymuminov9734
@sharifboymuminov9734 10 месяцев назад
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
Просмотров 31 тыс.
How to use inits and enums in SwiftUI | Bootcamp #13
19:30
skibidi toilet multiverse 042 Trailer
01:57
Просмотров 3,1 млн
My 10 “Clean” Code Principles (Start These Now)
15:12
Node.js is a serious thing now… (2023)
8:18
Просмотров 651 тыс.
Backgrounds and Overlays in SwiftUI | Bootcamp #9
18:20
How to use NavigationStack in SwiftUI | Bootcamp #62
23:59
How To Use Text Fields in SwiftUI (2024)
10:03
Просмотров 9 тыс.