How to use Spacer in SwiftUI | Bootcamp #12

  Рет қаралды 28,691

Swiftful Thinking

Swiftful Thinking

Күн бұрын

Пікірлер: 33
@ClintonSiegel
@ClintonSiegel 2 жыл бұрын
Love when you add a 'real world' example. Thank you!
@andresraigoza2082
@andresraigoza2082 3 жыл бұрын
Great idea to explain this with colors. I didn't even know we could add color to a spacer(). That makes it so clear. Thank you so much!
@fre.helfer
@fre.helfer 2 жыл бұрын
I thought I wouldn't learn anything in this video, because I already know spacer. I just figured out why my views were getting out of the small device screen! THANKS!
@yuchen3587
@yuchen3587 2 жыл бұрын
I have followed the SwiftUI official tutorial and still have no idea about how to write my own SwiftUI code. Your tutorials are much better than that!
@ubu-ibme
@ubu-ibme 9 ай бұрын
Landmarks? I was sooooo lost.
@ConfidentlyRong-jo5yt
@ConfidentlyRong-jo5yt 5 ай бұрын
So happy I started this series. Thanks for this!
@dr.craigcurphey4829
@dr.craigcurphey4829 3 жыл бұрын
Love the music, too!
@ZhengCheng
@ZhengCheng 3 жыл бұрын
What a great series!
@Zaybeeh
@Zaybeeh 9 ай бұрын
Honeslty amazing job explaining this. It's not complicated at all but I wonder how much harder it would've been if you didnt explain it wth colors and all. Great Videos and series
@Abe-fb2lj
@Abe-fb2lj 2 жыл бұрын
Appreciate your hard work!! Thank you soooooo much!
@magedmohmed4403
@magedmohmed4403 2 жыл бұрын
Thanks Nick , your explanation is very very helpful for me or for us
@ubu-ibme
@ubu-ibme 9 ай бұрын
Cleverly done 😁
@Guinhulol
@Guinhulol Жыл бұрын
Oh, It all makes since now, spacer will straight dynamic just like Padding did, right?
@rivforest2395
@rivforest2395 25 күн бұрын
Thanks for making the video. Does the master VStack need vertical padding? if I don't add that, the VStack fills the screen from top to bottom beyond the notch and below the black rectangle.
@DmitriyChurilov
@DmitriyChurilov 9 ай бұрын
Hi Nick. Your tutorials are super useful. Though I have an issue with an images hstack. It also occupies the safe area of the screen. Any suggestions on that point? Thank's again 👍🏼
@SwiftfulThinking
@SwiftfulThinking 9 ай бұрын
Try adding .clipped or a corner radius to the images. Otherwise someone in our discord could give u specific code help: discord.gg/hh7rx8Wbhn
@Timon460
@Timon460 Жыл бұрын
at time ~13min, is that a reason to set Spacer frame width to 10, when spacer pushes vertically?
@panzorax.
@panzorax. 7 ай бұрын
I've question for you, in swiftui does it have space evenly like Flutter? ou know what i mean say?
@lincolndickerson1293
@lincolndickerson1293 Жыл бұрын
Fantastic info. Is there a simple way to center an image in the middle of a view, then have text to the left of the button using spacers and stacks. I ended up using a geometry reader but is seems like over kill for this simple layout.
@yuchen3587
@yuchen3587 2 жыл бұрын
Could you please do a tutorial series on how to use SwiftUI on Apple Watch?
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
That is a good idea!
@sermilion_audio
@sermilion_audio 3 жыл бұрын
Thanks for the video. If I have created one Spacer with min length 0 and I do not want to redeclare it every time, is it OK to assign it to a var and just reuse it? `var spacer = Spacer(minLength: 0)` and just reuse that var? I tried it and it works fine, just wanted to know if this is a bad practice and I should create new instances every time. Thanks.
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
Hey Sermilion! I think it's a great idea to create a variable. When you upload your app and it compiles, it won't make a difference which method you use. Therefore, I recommend using whichever method is going to make your code look cleaner, more readable, and more scaleable (reusable).
@uncensored007
@uncensored007 2 жыл бұрын
Hey Nick, great series. How do I get in touch with you ?
@valerieokelly6224
@valerieokelly6224 2 жыл бұрын
Really clear
@최승기-g8f
@최승기-g8f 3 жыл бұрын
Thank you!!!
@JPkatukenda
@JPkatukenda 2 жыл бұрын
wow start
@alzearafat
@alzearafat 2 жыл бұрын
Thank you!
@knowledgeispower4953
@knowledgeispower4953 10 ай бұрын
Thank u bro...☺
@PassTheBoof
@PassTheBoof 5 ай бұрын
FYI if you name your file spacer, then it will crash when you try to use a spacer
@denizc1019
@denizc1019 2 жыл бұрын
NICE
@ZhengCheng
@ZhengCheng 3 жыл бұрын
Spacer(minLength: 0)
How to use inits and enums in SwiftUI | Bootcamp #13
19:30
Swiftful Thinking
Рет қаралды 42 М.
How to use Transition in SwiftUI | Bootcamp #27
11:27
Swiftful Thinking
Рет қаралды 32 М.
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 242 МЛН
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 22 МЛН
How to use NavigationStack in SwiftUI | Bootcamp #62
23:59
Swiftful Thinking
Рет қаралды 37 М.
Add, edit, move, and delete items in a List in SwiftUI | Bootcamp #31
27:29
Stop using Spacer() in SwiftUI
6:02
Flo writes Code
Рет қаралды 14 М.
How to use @AppStorage in SwiftUI | Bootcamp #52
17:08
Swiftful Thinking
Рет қаралды 30 М.
SwiftUI - Loading View | Activity Indicator
7:13
Sean Allen
Рет қаралды 29 М.
System Icons, Multi-Color Icons, and SF Symbols in SwiftUI | Bootcamp #6
11:54
Picker and PickerStyles in SwiftUI | Bootcamp #38
19:56
Swiftful Thinking
Рет қаралды 39 М.
VStack, HStack, and ZStack in SwiftUI | Bootcamp #10
21:37
Swiftful Thinking
Рет қаралды 43 М.