Adding Padding in SwiftUI View | Bootcamp #11

  Рет қаралды 29,479

Swiftful Thinking

Swiftful Thinking

3 жыл бұрын

Padding is a SwiftUI developer's best friend. In this video we learn how to use the .padding() modifier to align and offset views in our iOS application. Padding is often used to add space between objects or to add a margin between an object and the edge of the device. We look at different ways to implement padding, including setting the padding to specific sides (vertical, horizontal, top, bottom, leading, trailing) and how to stack padding modifiers on top of each other!
Next video: • How to use Spacer in S...
Last video: • VStack, HStack, and ZS...
🤙 WELCOME BACK 🤙
WEBSITE: www.swiftful-thinking.com
DISCORD: / discord
GITHUB: github.com/SwiftfulThinking/
SAY THANKS: www.buymeacoffee.com/nicksarno

Пікірлер: 45
@michelcusson2673
@michelcusson2673 2 жыл бұрын
you are a good teacher. I'm new in swift and I'm a little old at 72 years old to learn something but I like to learn
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
It's never too late haha. You'll have to let me know once you finish what you think!
@alexpascal5403
@alexpascal5403 Жыл бұрын
Your not old bro. I’m 69 and nick teaches me just right. 😊
@CMessineo
@CMessineo 5 ай бұрын
I'm 57 and also learning a ton from Nick.
@manuelsteele8030
@manuelsteele8030 Жыл бұрын
This is the best bootcamp tutorial for SwiftUI. It helps me understand the advanced SwiftUI tutorials on Udemy that assume the basic knowledge is "already there". In my case, I have to rigorously review the "basic" fundamentals ASAP. And this tutorial is very fast to achieve that. I am a mobile app test architect, and my job is to do some automation scenarios in SwiftUI soon.
@Dorothyinstead
@Dorothyinstead 2 жыл бұрын
Nick, your ease of use and knowledge of SwiftUI is ...dare I say...inspirational. Particularly for beginners who look at coding with daunt. It is easy for you, and you make it look easy for newcomers. Great job buddy.
@TeemoChan
@TeemoChan Жыл бұрын
I never understood padding my whole life in university, I didn't know why sometimes the space was outside or inside a frame, now I do! thank You very much
@natgenesis5038
@natgenesis5038 2 жыл бұрын
you are the best SwiftUI tutor wow ,especially the way how you divide every video per its own subject
@devarajn5910
@devarajn5910 8 ай бұрын
This is the go to course for SwiftUI ! Period.
@yuchen3587
@yuchen3587 2 жыл бұрын
Your videos have become my Swift holy grail.
@surakadotme
@surakadotme 2 жыл бұрын
Thanks to this video, I was able to make the button style that I wanted to do for a long time in 30 seconds. really amazing
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
😎😎😎
@heshamabdo6024
@heshamabdo6024 Жыл бұрын
The music in the intro is nice
@jordantejeda
@jordantejeda Жыл бұрын
I CAN'T GET ENOUGH OF YOUR CODING VIDEOS. THANK YOU FOR YOUR AMAZINGLY EASY TO FOLLOW INSTRUCTION.
@ZukuseiStudios
@ZukuseiStudios 2 жыл бұрын
Awesome Work Nick, terrific pacing and very clear, you are a natural educator. Many thanks for the hard work you have put in to make the course so excellent
@sebastien_martinez
@sebastien_martinez Жыл бұрын
Note: for me, at least, default padding is 15, not 10 (3:24). I'm using XCode version 14.3.1. Just a small detail! Great video!
@JacobRuizDesign
@JacobRuizDesign Жыл бұрын
Thanks for making these videos. You're a great teacher.
@natgenesis5038
@natgenesis5038 2 жыл бұрын
Bro I thought It is going to take a year again like swift but wow you made me understand swiftui in 2 weeks
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
You got thisss 😎
@nkangarichard
@nkangarichard 9 ай бұрын
I am so grateful for your videos🙏🏾
@SwiftfulThinking
@SwiftfulThinking 9 ай бұрын
Thanks!!
@Dragonboh1
@Dragonboh1 Жыл бұрын
Dude, keep doing what you doing
@ZhengCheng
@ZhengCheng 3 жыл бұрын
Great Content!
@gadgetman5210
@gadgetman5210 2 жыл бұрын
these videos are awesome video on each section better 😀 it sits in the brain better thank you 😊
@pakaponwiwat2405
@pakaponwiwat2405 Жыл бұрын
Thank you very much, sir!
@ben7226
@ben7226 Жыл бұрын
Very well explained, thank you!
@magedmohmed4403
@magedmohmed4403 Жыл бұрын
Nick , thank you very much , you are very helpful for us
@randlyce
@randlyce 2 жыл бұрын
amazing!
@wahhmann123
@wahhmann123 8 ай бұрын
like the music at the end of the videos
@melmandaragrows
@melmandaragrows 2 жыл бұрын
Great Content
@knowledgeispower4953
@knowledgeispower4953 6 ай бұрын
nice bro .. 👌
@mourbatsalim4830
@mourbatsalim4830 2 жыл бұрын
thank u ;)
@sreekanthzyou
@sreekanthzyou 2 жыл бұрын
Great Job buddy!!! I have one doubt. Does padding create extra frame as we are able to set background color?
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
Thanks Sree! And don't doubt it! Padding is super useful. It actually moves the frame. You can add a .background() anywhere in the view hierarchy... before or after the padding!
@optimisticenigma283
@optimisticenigma283 2 ай бұрын
Does anyone know what the shortcut(the one Nick uses at 6:24) is on the current version of Xcode? (Version I'm using is : XCode 15.4) If I don't have a mouse, I'm practically unable to open that menu.
@user-rt1ed8wm3y
@user-rt1ed8wm3y 2 ай бұрын
how to make the "Text" in two lines? is not used.
@arkemal
@arkemal Жыл бұрын
Hi, nice explanation of paddings. Do you know what's the default padding when createing a form? (leading and trailing) Thanks
@SwiftfulThinking
@SwiftfulThinking Жыл бұрын
I think it’s 8 or 10
@arkemal
@arkemal Жыл бұрын
@@SwiftfulThinking Thanks!
@theflutterguy6301
@theflutterguy6301 3 ай бұрын
do we have marigin in swift ui?
@LebenWerden
@LebenWerden 5 ай бұрын
Min 1:28 How do you zoom in?
@user-ev3dl9zt8s
@user-ev3dl9zt8s 3 жыл бұрын
Thank you!!!
@SwiftfulThinking
@SwiftfulThinking 3 жыл бұрын
You're welcome!
@natgenesis5038
@natgenesis5038 2 жыл бұрын
How you know the keywords ????
@SwiftfulThinking
@SwiftfulThinking 2 жыл бұрын
You'll get used to them haha
How to use Spacer in SwiftUI | Bootcamp #12
14:19
Swiftful Thinking
Рет қаралды 25 М.
How to use inits and enums in SwiftUI | Bootcamp #13
19:30
Swiftful Thinking
Рет қаралды 38 М.
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 7 МЛН
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 30 МЛН
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 19 МЛН
SwiftUI Drag and Drop with Transferable Custom Object
26:33
Sean Allen
Рет қаралды 20 М.
NavigationStack - SwiftUI Programmatic Navigation - iOS 16
20:20
LazyVGrid, LazyHGrid, and GridItems in SwiftUI | Bootcamp #16
22:16
Swiftful Thinking
Рет қаралды 43 М.
iOS Developer 2023 Roadmap to GET A JOB
11:13
Dave Jacobsen
Рет қаралды 93 М.
Stop using Spacer in SwiftUI (and what to use instead)
13:14
Rebeloper - Rebel Developer
Рет қаралды 2,9 М.
How to use NavigationStack in SwiftUI | Bootcamp #62
23:59
Swiftful Thinking
Рет қаралды 32 М.
How To Use Text Fields in SwiftUI (2024)
10:03
CodeWithChris
Рет қаралды 7 М.
SwiftUI Card View - Group Box & Customizations
10:21
Sean Allen
Рет қаралды 13 М.
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 7 МЛН