How to Build a User Interface in Xcode - Lesson 3 (2024 / SwiftUI)

  Рет қаралды 93,710

CodeWithChris

CodeWithChris

Күн бұрын

Learn how to use SwiftUI views, view containers and view modifiers to construct an app user interface. This lesson focuses on the foundations of building user interfaces in Xcode using SwiftUI. This is important because building any kind of app involves building UIs.
Download the project and resources:
learn.codewithchris.com/cours...
👋 Our "Launch Your First App" program will help you build up your iOS skills to publish your very own feature rich app even if you’re a beginner starting from scratch. cwc.to/youtubeoffer
🕑 Timestamps:
00:00 Intro
00:46 SwiftUI Views and Modifiers
01:13 Starting a New Xcode Project
02:12 Building the Core Card
03:06 SwiftUI Image and Text
07:30 Building the Ratings
07:44 SwiftUI HStack
09:14 SF Symbols
12:18 SwiftUI Spacer
18:36 Building the Icon Area
20:45 Building the Card Background
27:37 Building the View Background
28:42 Outro
This video series will teach a beginner with no programming experience how to make iPhone apps. I'm creating these videos with the assumption that the student has no prior knowledge and is starting from scratch.
CWC+ PROGRAM:
👋 Our "Launch Your First App" program will help you build up your iOS skills to publish your very own feature rich app even if you’re a beginner starting from scratch. cwc.to/youtubeoffer
APPLE DEVELOPER PROGRAM:
developer.apple.com/programs/
MY FAVOURITE APP RESOURCES:
📖 The SwiftUI Reference Books I Use - SwiftUI Views Mastery - cwc.to/swiftui-book
💰 How I Monetize My Apps - RevenueCat - cwc.to/revenuecat
🤖 My Automation Tool of Choice - Bitrise - cwc.to/bitrise
🧑‍🎨 What I Use For App Design - Figma - cwc.to/figma
WEEKLY UPDATES VIA EMAIL:
✉️ Every Saturday, receive an email digest of new content - cwc.to/newsletter
CONNECT:
🌍 My website - codewithchris.com
😺 GitHub - github.com/codewithchris
📸 Instagram - / codewithchris
🐦 Twitter - / codewithchris
ABOUT CODEWITHCHRIS:
Hi I’m Chris! I’m dedicated to teaching fundamentals about how to make an app. This is important if you’re trying to land an iOS job, be a freelancer, increase or start a business with an app idea. On this channel and my website, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have learned to code and build apps on their own! cwc.to/reviews
Note: Some of the links in this description are affiliate links that help support this channel. Thank you if you used any of them!
#CodeWithChris #CodeCrew #HowToMakeAnApp

Пікірлер: 122
@CodeWithChris
@CodeWithChris Жыл бұрын
👋 Our "Launch Your First App" program will help you build up your iOS skills to publish your very own feature rich app even if you’re a beginner starting from scratch. cwc.to/youtubeoffer
@user-hs3pz4td1i
@user-hs3pz4td1i 3 ай бұрын
Thank you so much for NOT using background music of any kind in your video's. Most people think that their videos are not complete without some irritating, distracting and often confusing noise in the background. Especially with your videos, where the main goal is to inform people, so big chapeau! and I immedeately subscribed!
@nastynes
@nastynes Жыл бұрын
Tried learning Swift a total of 3 times in the past 5 years and I can confidently say that this is the most I’ve learned and picked up! Best Swift mentor on KZbin!
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you for the kind words!! - Pat
@umedsabzaev6142
@umedsabzaev6142 Жыл бұрын
Thank you very much, Chris. I love your tutorials. Looking forward for Lesson #4 of this series 😊👍 Best wishes from Tajikistan tp all iOS learners and Devs!
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you for the support!! :) - Pat
@tbone1268
@tbone1268 11 ай бұрын
This series has been great so far, It’s at a perfect pace and very in depth where it needs to be but doesn’t over explain everything. I can’t wait to keep watching this series. Great work on this!
@CodeWithChris
@CodeWithChris 11 ай бұрын
We're glad you're enjoying it! :) - Pat
@DLeRoux
@DLeRoux Жыл бұрын
Chris, this was phenomenal. I am coming from the std Web Stack, of HTML, CSS, et al, and this is so much easier! I cannot wait to dive into the programmatic aspect of Swift itself. You are a phenomenal teacher that breaks things down in such easy to digest snippets. I will 100% join CWC+ after this.
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you so much for the kind words!! Means so much! :) - Pat
@VectorK-sr1fz
@VectorK-sr1fz 6 ай бұрын
you explain everything really simple.Good job
@tomashertl8895
@tomashertl8895 5 ай бұрын
Hello Chris. I am relatively old, even in 1990 I got an experience to programming. I am fresh newborn to apple community due to science project in our work team. ANd had to say thanks a lot for your work. Precise, patience, great teaching abilities are on your side. Incredible start.
@CodeWithChris
@CodeWithChris 5 ай бұрын
Hello, we're very happy you like our contents and we wish you very good luck on your project. --Joash
@taylorenglish6237
@taylorenglish6237 4 ай бұрын
Thanks! I loved the tutorial! Well made.
@ek_tango
@ek_tango Ай бұрын
The voice and speech are soothing and the explanations are concise and kind.
@CodeWithChris
@CodeWithChris Ай бұрын
Glad you found it helpful! Thanks for learning with us! - Iñaki
@PhG1961
@PhG1961 Жыл бұрын
Amazing video tutorial. In the beginning a nice recap and then of course the expanding of the code/project. Excellent presented and very well narated. I really love your videos !
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you very much! :) - Pat
@rolandeumhza456
@rolandeumhza456 Жыл бұрын
I love love these!! I am using these tutorials to get me through my senior app development project! Thanks!
@CodeWithChris
@CodeWithChris Жыл бұрын
Glad it was helpful! :) - Pat
@Cris-lx9fx
@Cris-lx9fx Жыл бұрын
Thanks for the tutorial! Can't wait for the next one, it will be a very important!
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you for watching! New lessons will be uploaded every week :) - Pat
@N0KU.
@N0KU. Жыл бұрын
Best coding lesson series so far! Thanks a million!
@CodeWithChris
@CodeWithChris Жыл бұрын
Best comment so far lol Thank you!! - Pat
@Guipvideotek
@Guipvideotek 11 ай бұрын
Congratulations Chris ! Your pedagogy is very thoughtful, your way of talking very clear and slow enough for non native speakers, you make it simple yet quick enough not to be bored. I though coding apps UI was hard, you definitely make me want to download xcode! You really do a great job here ! Social Networks can be misused and bring shit to our lives, but people like you make platform like KZbin worth their while !
@CodeWithChris
@CodeWithChris 11 ай бұрын
Thank You for taking the time to comment, @Guipvideotek! --Joash
@GreyGalaxie
@GreyGalaxie Жыл бұрын
Just binged all three and I feel empowered. Thank you.
@CodeWithChris
@CodeWithChris Жыл бұрын
Wow! Thank you for the support! - Pat
@EricJGoforth
@EricJGoforth Жыл бұрын
You are a fantastic teacher and these videos are amazing. So excited for what you have coming down the line.🤩
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you for the kind words and for being in this journey with us! :) - Pat
@AmjadKhan-rz6nu
@AmjadKhan-rz6nu Жыл бұрын
This is mind blowing 🎉🎉🎉
@Oliver12723
@Oliver12723 5 ай бұрын
VERY GOOD !!!
@DaEnemy
@DaEnemy Жыл бұрын
For now I have to continue watching all lessons first but then... in short: MASSIVE THANKS! More to come :)
@CodeWithChris
@CodeWithChris Жыл бұрын
Enjoy!! :) - Pat
@AmjadKhan-rz6nu
@AmjadKhan-rz6nu Жыл бұрын
Please upload more videos more and more we are loving your teaching way.. it is very hard for me but my brother and your video helped me alot
@CodeWithChris
@CodeWithChris Жыл бұрын
New lessons will be uploaded every week so stay tuned :) - Pat
@AmjadKhan-rz6nu
@AmjadKhan-rz6nu Жыл бұрын
@@CodeWithChris 🤩 wow man… trust me I can only learn best and better by your teaching way ❤️❤️❤️ and looking forward for more
@Hollowdude15
@Hollowdude15 5 ай бұрын
Amazing video man🎉🎉
@roshanekka9687
@roshanekka9687 Жыл бұрын
Awesome!
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you! Cheers! - Pat
@gottafindacoolname
@gottafindacoolname 10 ай бұрын
YOU ARE SUCH A NICE PERSON!❤
@seanephram
@seanephram 7 ай бұрын
this has helped so much dude, thank you
@CodeWithChris
@CodeWithChris 7 ай бұрын
Glad it helped! Thanks for watching! - Iñaki
@jgvlc
@jgvlc Жыл бұрын
Excellent lessons, thank you very much!
@CodeWithChris
@CodeWithChris Жыл бұрын
You're welcome! - Pat
@Hasan-po6ud
@Hasan-po6ud 4 ай бұрын
Thanks
@iBradenStevens
@iBradenStevens Жыл бұрын
Such a fantastic teacher! If people didn't know, you can access all the symbols in the same menu where we were dragging the other elements from just going to the last symbols group.
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you and thanks for sharing! - Pat
@judetear7726
@judetear7726 Жыл бұрын
Thanks for making these
@CodeWithChris
@CodeWithChris Жыл бұрын
You're welcome! :) - Pat
@viggotroback4429
@viggotroback4429 Жыл бұрын
This is awsome. Great teaching structure. How this is free is beyond me....
@CodeWithChris
@CodeWithChris Жыл бұрын
Great to hear! :) - Pat
@yaserghananwi
@yaserghananwi 9 ай бұрын
Nice tutorial thanks
@CodeWithChris
@CodeWithChris 9 ай бұрын
Glad you liked it! Thanks for watching! - Iñaki
@Hollowdude15
@Hollowdude15 5 ай бұрын
Wow😊😊
@snark907
@snark907 Жыл бұрын
Thanks!
@CodeWithChris
@CodeWithChris Жыл бұрын
No problem! - Pat
@hugohart
@hugohart 3 ай бұрын
SF symbols are part of Xcode. In the Library, for example at 20:16, you'll see the tab at the very right side (looks like a star) is for SF Symbols.
@SepitmanShareeati
@SepitmanShareeati Жыл бұрын
thank you for these lessons Chris , one of the first time's that I can learn a software online ,
@CodeWithChris
@CodeWithChris Жыл бұрын
You're very welcome! - Pat
@efeuzun35
@efeuzun35 Жыл бұрын
u r really amazing man. ty so much.
@CodeWithChris
@CodeWithChris Жыл бұрын
You're welcome! - Pat
@eruston
@eruston Жыл бұрын
21:10 great tut, quick note: if you are not seeing the blue outline around the elements in the preview, make sure that the second icon in the bottom left hand corner of the preview pane (you can hove to discover: selectable) is turned on.
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you for this! - Pat
@moz8292
@moz8292 Жыл бұрын
Ohhhhhh, I didn’t have it so I was a little confused. Ty.
@liamsz
@liamsz 8 ай бұрын
the way my jaw dropped whenever I saw that a horizontal stack could be inside of a vstack and then everything just clicked and It all made sense to me lmao
@gabinrichter3330
@gabinrichter3330 Ай бұрын
Omg you‘re a hero
@CodeWithChris
@CodeWithChris Ай бұрын
Glad it was helpful! Thanks for watching! - Iñaki
@AmjadKhan-rz6nu
@AmjadKhan-rz6nu Жыл бұрын
also upload about how to add navigation to it etc
@jaipurestate3748
@jaipurestate3748 9 ай бұрын
Before this video, I thought, The IOS UI so complicated but after video it so easy. Thank you bro, this is valuable video.
@CodeWithChris
@CodeWithChris 9 ай бұрын
Glad you liked it --Joash
@danielniels22
@danielniels22 Жыл бұрын
im a windows user, and i develop website. and now im having a mac, learning this ios development. it feels hard at first, hopefully i can follow along through your course! thanks for this amazing videos Chris!
@CodeWithChris
@CodeWithChris Жыл бұрын
You can do it!! And thank you for learning with us. If you have any questions, our CodeCrew forum is a place where experts and fellow students are willing to help you out! Just visit this link codecrew.codewithchris.com :) - Pat
@johnrowland8354
@johnrowland8354 Жыл бұрын
Happy New Year.
@CodeWithChris
@CodeWithChris Жыл бұрын
Happy New Year John! Cheers! - Pat
@thewoodhousedayspagrandrap2332
@thewoodhousedayspagrandrap2332 Жыл бұрын
Chris - just started following your channel. One suggestion I would make is when you complete a project to scroll through all the code. Mine isn't working out quite like yours and I would like to check code against yours. So far, am learning a lot. Thank you
@CodeWithChris
@CodeWithChris Жыл бұрын
We suggest posting on our CodeCrew forum so that our tech support staff can help you. Just visit this link codecrew.codewithchris.com - Pat
@jakeeaves218
@jakeeaves218 Жыл бұрын
can you do a video on corebluetooth or do you have any good resources on it? I cant seems to find any tutorials on how to send information to a device like a rgb value
@chungu5824
@chungu5824 9 ай бұрын
Hi I know this isnt related to swift but which keyboard do you use?? Love the sound
@marycole4306
@marycole4306 Жыл бұрын
I worked on the previous version of this course using a free account, but I decided to start over with this version for review (it's been awhile) and because the course has been updated. At the end of lesson 3 here, Chris mentions we can only get the exercises/challenges on his website, but when I go back there, I don't see how to access the updated version, just the version I'd been working through. At least, it appears to be the same version as before. Can anyone advise me how to navigate to the updated version there?
@ChaceDrake
@ChaceDrake Жыл бұрын
Thank you so much for these tutorials! I'm learning so much! at 12:30, you say "let's go to 'selection mode'", but I could not locate it. I have the most up to date Xcode on my new Mac. Can you direct on how to find that "Selection Mode"?
@CodeWithChris
@CodeWithChris Жыл бұрын
Exactly at 12:30, you can see Chris selects the second button right below the Preview. Unfortunately the KZbin time line is right in the way, so go back to that video and let me know if you have those buttons there. If you don't someone from our devs can help you enable those: codecrew.codewithchris.com/ @AdrienVillez
@zzz33cccce4
@zzz33cccce4 Жыл бұрын
Hi! Thank you! How to connect MySQL Database to this app (title, description, name_image)?
@mikefuller1561
@mikefuller1561 Жыл бұрын
I downloaded the lessen 4 assets, however when I drag them into the assets section in xcode there are triplicates and no name I type in brings them over into the assets part of the Xcode.
@toothwiddler
@toothwiddler Жыл бұрын
Is there a way to build an app that gives a user control of another users settings like say their volume or ringtones
@sumerjacob850
@sumerjacob850 10 ай бұрын
Hi Chris Do I have to add multiple vertical stack then horizontal stack when I get the same result with one set of stack. Thx for the tutorials
@CodeWithChris
@CodeWithChris 10 ай бұрын
Hello @sumerjacob850! Thank you so much for taking the time to comment, unfortunately we can't debug it for you in the comment section here but you can try joining and posting in our community: cwc.to/codecrew --Joash
@chriswestphal26
@chriswestphal26 Жыл бұрын
can you try showing the entire code on the screen. as a beginner its pretty tough to figure out what's going on when you're that zoomed in
@AaronEChen
@AaronEChen Жыл бұрын
Hi Chris, for some reason I can't instal SF Symbols. Im using Xcode on MacBook 2022. Any Suggestions?
@baosam5053
@baosam5053 9 ай бұрын
Hey chris I'm just curious what state you're in
@DiegoHarari
@DiegoHarari Жыл бұрын
How do you indent the code?
@Jp_248
@Jp_248 Жыл бұрын
😊
@mrgrumpy888
@mrgrumpy888 Жыл бұрын
24:50 Perhaps a stupid question but why are the modifiers (.padding and .background) defined outside of the closing bracket of the VStack? It's a minor thing but I'm confused as to how they are able to influence the VStack.
@TimothyVaughan
@TimothyVaughan Жыл бұрын
I had the exact same issue. With some knowledge in swift code, that felt weird to me. The reason is because .modifier's always come after the view element in question. SwiftUI knows you're applying that to the last element you created. (And I'm using the term "element" loosely). If it was inside the stack, it would think you're trying to apply the modifiers to an object inside the stack instead of the stack itself. If you think of the stack as an object in itself, it makes sense because modifiers go right after view elements. Just think of the stack as it's own view element containing others.
@tchinua
@tchinua Жыл бұрын
That blue outline at 20:57 doesn't show on my xcode
@arozendojr
@arozendojr Жыл бұрын
What would be a good MacBook for iOS mobile development?
@CodeWithChris
@CodeWithChris Жыл бұрын
Any of the Macbook with the Apple M1 or M2 chip. They are amazing. Even the simplest Mac Mini M1 that costs around $500 is a killer. After that, it's just a question of how much memory and RAMs you wish to add. @AdrienVillez
@Meekismwisdom
@Meekismwisdom 9 ай бұрын
24:30
@gayanchaturanga991
@gayanchaturanga991 Жыл бұрын
how to create 12 cards as calendar widgets ?
@samehmostafa12
@samehmostafa12 Ай бұрын
Why I can't see any mobile as a preview even after install 17.4!! tell me please
@chepparmaps
@chepparmaps 10 ай бұрын
Hello Chris, I would like to subscribe. on a monthly basis rather than a whole year. Please advise me
@CodeWithChris
@CodeWithChris 10 ай бұрын
Hi Cheppar, thanks for considering CWC+ You can pick the monthly subscription on this page: learn.codewithchris.com/collections/#pricing-section Thanks for learning with us! - Iñaki
@AmjadKhan-rz6nu
@AmjadKhan-rz6nu Жыл бұрын
love from pakistan
@amitg7034
@amitg7034 Жыл бұрын
By when will you put up the 2023 videos on CWC+ and also will you remove the old content of swiftui because I'm planning on getting a mac and this information is important to me.Also is all the current information on CWC+ about swiftui basics and firebase redundant
@CodeWithChris
@CodeWithChris Жыл бұрын
The content from 2020/2021 is still relevant. Swift and SwitUI are still the same. The one that changed a little is Xcode. if you are a bit familiar with Xcode, you will still be able to work with our 'old' videos. We are redoing our Beginners Series because for people who have never coded before, small changes in softwares can be annoying and a bit overwhelming. @AdrienVillez
@amitg7034
@amitg7034 Жыл бұрын
@@CodeWithChris will you remove the old videos or will they still be there
@dathan4859
@dathan4859 Жыл бұрын
Is the youtube offer still active? It’s showing up expired on my browser even though the video was just released yesterday.
@CodeWithChris
@CodeWithChris Жыл бұрын
Hey! You can contact the support on our website (codewithchris.com/contact) to get access to it if the link doesn’t work. Thanks!
@ExitStrategyNYC
@ExitStrategyNYC Жыл бұрын
Why isn't .fit in the menu? Is that an xcode bug?
@vibodhvlogs8075
@vibodhvlogs8075 7 ай бұрын
Hi I am 9 year old with your lesson i could do my app with a om symbol and trying to put audio toit but couldnt figure out how to Will you please help me?
@radfaredu644
@radfaredu644 Жыл бұрын
We are waiting for new lesson
@CodeWithChris
@CodeWithChris Жыл бұрын
A new lesson will be uploaded this week! - Pat
@denisk3852
@denisk3852 Жыл бұрын
Apple must do sf symbols via Enum. Strings are not serious.
@midnightappointment
@midnightappointment 10 ай бұрын
I'm getting an error that "requires a development team."
@VinceDae
@VinceDae Жыл бұрын
NOOB HERE: .... it says "can't find color" when I try and make my background 'black' ? how do I set the colors? :)
@CodeWithChris
@CodeWithChris Жыл бұрын
Hi! We suggest posting on our CodeCrew forum so that our tech support staff can help you. Just visit this link codecrew.codewithchris.com - Pat
@stephenwright2211
@stephenwright2211 6 ай бұрын
SF symbols not free any longer, at least for the Mac platform - Apple, not yet rich enough, now asking for a dollar.
@chriswestphal26
@chriswestphal26 Жыл бұрын
show the entire window please not just sections of it
@EricJGoforth
@EricJGoforth Жыл бұрын
Thanks!
@CodeWithChris
@CodeWithChris Жыл бұрын
Thank you for the support! - Pat
Starting The War Card Game App - Lesson 4 (2024 / SwiftUI)
15:59
CodeWithChris
Рет қаралды 62 М.
How to Make an App - Lesson 1 (2024 / SwiftUI)
27:21
CodeWithChris
Рет қаралды 379 М.
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 126 МЛН
PINK STEERING STEERING CAR
00:31
Levsob
Рет қаралды 23 МЛН
She ruined my dominos! 😭 Cool train tool helps me #gadget
00:40
Go Gizmo!
Рет қаралды 57 МЛН
Пробую самое сладкое вещество во Вселенной
00:41
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,4 МЛН
SwiftData Basics in 15 minutes
15:18
CodeWithChris
Рет қаралды 38 М.
Learn iOS Development FOR FREE - Best courses and tutorials
10:41
Rodolfo Roca
Рет қаралды 3,7 М.
How to Make an App in 8 Days (2024) - Full Walkthrough
3:00:49
CodeWithChris
Рет қаралды 584 М.
Xcode Tutorial - Step by Step for Beginners
56:52
CodeWithChris
Рет қаралды 320 М.
Калькулятор на SwiftUI / MVVM / Урок 1
41:18
iOS Bulgakov
Рет қаралды 2 М.
Data Flow in a SwiftUI App
33:15
CodeWithChris
Рет қаралды 52 М.
SwiftUI Masterclass: Build To Do List App
2:42:49
iOS Academy
Рет қаралды 103 М.
World’s Deadliest Obstacle Course!
28:25
MrBeast
Рет қаралды 126 МЛН