SwiftUI Basics Tutorial
HTML-код
- Опубликовано: 19 июл 2024
- If you've enjoyed this video and want to learn more, here's a 15% off promo code for the full course:
Use the code YT-FREE-PREVIEW at checkout - seanallen.teachable.com/p/swi...
This video is a compilation of the first 8 videos in my SwiftUI Fundamentals course as a free preview. In this set of videos we learn the basics of building your app with SwiftUI by creating the user interface for a standard weather app.
This project (and all projects in the course) use Xcode 12 and iOS 14.
In the full course we build 4 separate apps and focus heavily on passing data between views. I believe it's much easier to make your app LOOK how you want, however it's tricky to get your app to ACT how you want in SwiftUI. That's what we focus on in this course with @State, @Binding, @StateObject, @ObservableObject, @EnvironmentObject and more.
Course Link:
seanallen.teachable.com/p/swi...
Timestamps:
0:00 - Intro
0:33 - Course Overview
7:14 - Weather App Starts
19:47 - City Text in VStack
26:43 - SF Symbols
30:06 - Main VStack
37:37 - HStack of Days
51:07 - Button & Refactor
1:08:37 - @State & @Binding Basics
Link to my book - How I Became an iOS Developer:
gumroad.com/l/sean-allen-origin
My Twitter:
/ seanallen_dev
Hired.com:
hired.com/x/1n01g
My Podcast - iOS Dev Discussions:
itunes.apple.com/us/podcast/i...
Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):
Ray Wenderlich Books:
store.raywenderlich.com/a/208...
Ray Wenderlich Videos:
store.raywenderlich.com/a/208...
Paul Hudson's Hacking With Swift:
gumroad.com/a/762098803
Donny Wals - Combine Framework:
gumroad.com/a/909014131
Mark Moeyken’s SwiftUI Views:
www.bigmountainstudio.com/swi...
Learn Advanced Swift Here:
gumroad.com/a/656585843
#swift #softwaredeveloper #iosdeveloper - Наука
If you've enjoyed this and want to learn more, here's a 15% off promo code for the full course:
Use code YT-FREE-PREVIEW at checkout - seanallen.teachable.com/p/swiftui-fundamentals
Hi Sean, I am a beginner in swift learning since 1/2 year on multiple Platforms . Keep up the good work . I love your channel . You definitely know how to teach swift . 👍
Can you please accept gift cards like Mint for countries like Iran which isn't connected to international banking system?
Thanks brother for really nice videos.
I really enjoyed this introduction.
Your teaching style really clicks with me.
So I bought the course.
I couldn't see anywhere to input the promo code though.
Maybe that needs a tutorial too? ;)
Glad you enjoyed it, Rob. There should be a spot at checkout to enter a code. I can refund you the 15%. Hope you enjoy the course!
I just blown away by the quality and clarity of this course. Thanks Sean, you're one of my favourites!!! 👏👏👏
One of the best tutorial on RUclips. No fuss, straight to the point and explained the logic.
I'm a professional Ios developer. But when I required to learn something new in swift ui, Ui kit or programming logic I directly search for seanallen I love the way you explain. Love from India.
Thanks for the kind words 😀
You explain the logic behind the code and this is something I find worth respecting. Thank you.
I remember what it was like learning to code from online videos, so I try to do my best to keep that in mind when creating my videos.
Great! Now I know what I'll be doing this weekend.
Sounds like a great weekend to me.
exactly what I thought
@@seanallen Hello, I am a web developer, How exactly do you fetch data from an Api ? so you can make the content dynamic.
Really like the tutorial! Especially the speed that you're moving forward and introducing new concepts! Can’t wait for the next tutorial.
Glad you enjoyed it, Vico!
This is definitely one of the better tutorials out there in terms of striking balance between depth and beginner friendliness
Just finished this video. The tutorial was very clear, concise and easy to follow. I liked it a lot, thank you!
Beautifully and well designed tutorial. Nice to watch and easy to understand. I love how you explain, I had some experience on Java and PHP but wanted to develop an app with swift and this is awesome to get a grasp of this awesome language and to refresh my knowledge.Thank you
Hey Sean, watching your tutorial answered some nagging questions I have had for a while now so thank you for taking the time to put your know-how out there for us mortal humans. I am now going to look deeper into your tutorials- you rock-cheers💥
I just watched 30 minutes of this video and I didn't even realize. I appreciate your hard work in this video; explained very well and the pace is also amazing!
Hey Sean, watched a lot of tutorials on your channel. Want to thank you for the clear and relax way of teaching! Everytime learning something new. 👍🏻👍🏻👍🏻
Happy to help, Andrew!
Perfect video for someone like myself who has a good amount of experience in Android and web and is just looking for a quick overview of how the syntax / code organization works on iOS. Went over all the basics very nicely without spending too much time over-explaining things (a common problem in many tutorials). Amazing work!
Better to not do Apple platform software engineering until tim cook is replaced by somebody WAAAAAAY better at making sure the tools are practical and not simply a PHD circlejerk
I've dabbled in many tutorials, and this is by far one of the best. I like how you lay your objectives out. Thank you for sharing, and I will look into your book as well. The problem with most tutorials or even sets of tutorials, at-least from my perspective, is that they rely heavily on one's inference but there's less to infer when you have a beginner's mind set. Anyway, great job man, I look forward to building my skill set from your channel.
Thanks for the kind words, JB. Glad you enjoyed my teaching and presentation style. 😀
Dude, you are awesome. Your video was super easy to follow. It was paced perfectly. You explained stuff in a very human way. Keep it up! Oh, and I subbed.
Thanks for the kind words, Adam. Happy to hear you enjoyed it, and I appreciate the support!
this was the best “beginner” tutorial for any programming language i’ve ever seen. Thank you so much, you helped a ton!
Sean you are absolutely true. I too felt comfortable building the UI but was really scratching my head when passing the data
Awesome content as always. I had no idea how SwiftUI works but now with this great introduction, I can move on. Many Thanks @Sean.
I really like the way you explain your tutorials. I made apps for the App Store myself (in the days with objective c) , but still struggling with the new SwiftUI data passing. Declarative programming is new to me. Your video makes sense and I am looking forward to see more of them.
Glad it was helpful!
Hi Sean.
Man you did a really good job in this video.
Thank you very much.
Greetings from a brazilian iOS developer who(until this video) was still fighting against constraints.
Thanks Sean, great lessons! I look forward to using what I learned.
Have to say, I'm just getting into code, and iOS development. Tried a few courses, and they were solid for sure. But following along with this video pretty much seals it for me. You don't just say "type this, do this, there ya go". You talk about why things are what they are. I've done a bunch of the thing a in this vid already. But you're teaching me what exactly they are, and why I'm doing them. Thank you. Subbed. You're my new go to boy 🙌🏻 #1 best boy. America's sweet boy.
This is a wonderful tutorial. As someone who has the basics of Swift down, this tutorial was easy to follow, with clear and concise explanations. Sean makes learning fun. I daresay he is the best Swift teacher on the internet right now
I appreciate the kind words, Christian 😀
Thank you for the great lesson. I like how consistent you're in your art. Cheers!
I appreciate the kind words 😀
Thank you for making this video. I’ve learned so much and am excited to build my UI.
A great explanation of extracted subviews as well as a how binding state variables operate. I finally have a pretty solid grounding of SwiftUI, reusable subviews and binding. A true iOS advocate.
This tutorial is the best one I watched so far. As someone from web development background, this tutorial feels more "at home", this made me see the similarities of SwiftUI & web development. I can link them together to form a better understanding.Thank you!
Glad you found it helpful, Duane! Got a bunch of SwiftUI stuff on my channel if you wanna check it out 👍
I thought it's hard to learn Swift UI. But with your tutorial was soooo easy. Thank you so much ❤️
Thank You Sean! You are a Genious both at explaining and at programming. Cheers from Argentina!
It is extremely satisfying to see and hear your explanation. Thank you for sharing.
best SwiftUI walkthroughs hands down. thank u
Wow, thanks!
Great video! I used to create ios apps several years ago but have stopped. Your video is an inspiration that make me want to start again.
Wow, this was so good I mostly definitely know I can do this. I have to sign up for your course. After much searching I’ve found your teaching for me to be the best
Happy to hear you enjoyed it, Isaiah!
This was such an amazing tutorial. You may not be the best coder in the world but you sure do explain the concepts really well and practically. I am definitely going to purchase your SwiftUI course.
"its nothing in detail, just for you to see how its done fast".
- explains everything in detail. - you are awesome dude
Thank you Sean for the great basics lesson. I like how consistent you're in your art. Greetings from Connecticut!
Thanks for the kind words, Denis!
@@seanallen I'm Magento/Netsuite software developer in one of the apparel distributors here in Connecticut. Was excited to hear your story. Let me know if you'll need any help!
Such an inspirational man. Keep grinding, I hope good things come to you. Amazing course
Thanks for the kind words, Javier!
You have been helping me with iOS for years, thank you Sean!
Love this videos. Super engaging and explanatory. Please keep it up. Got yourself another
subscriber.
AMAZING DUDE. Thank you. I'm new to this, so it took me 3 hours to watch and follow along. Thank you for creating such an information dense presentation. You've earned my subscription 100 times over!
Happy to have ya, Tyler! Glad you enjoyed the video.
I am really a fan of yours. When I think of learning any new stuff in iOS, first search it in your channel. Thanks for the great videos.
Happy to hear you enjoy the channel, Prachi 😀
Thanks for this Sean this really was a fun project to learn swiftUI! I am trying to learn swiftUi for vision os coming up. Thanks for making this very beginner friendly.
Man, you make me fall in love with SwiftUI… this is soooo inspire me… thank you….
Thank you for this introduction to SwiftUI. Pretty well done 👍
Awesome content as always. I had no idea how SwiftUI works but now with this great introduction, I can move on. Many tks @Sean.
Happy to help, Alan 😀
Coming from flutter, this is a superb introduction to understand how things go about in swift UI. Pretty similar in terms of declarative UI. Awesome video, keep going!
I felt the same way. I kind of felt like this was a cleaner more organized version of flutter.
this is amazing, thank you so much. I was about to do GUI in C++ but this is so much better, and through my knowledge of C++ it was really easy as well, hope you make more of these
Glad you enjoyed it!
@@seanallen if this is like the course then sign me up
Well, this is the exact first 8 videos of the course. I put them on RUclips as a free preview. So, yup. this is exactly what the course is like 😀
Very clear explanation. Thank you Sean!
Didn't know where to start learning Swift and this is the intro I have been looking for. New subscriber!
Happy to hear it. Hope you enjoy the channel!
This is an excellent video and you are very clear in your instruction!
I find Sean's way of teaching and explanation is really easy to follow especially since I'm a visual learner as well. I've been following Sean's content in RUclips, Twitter and podcast so I enrolled in this course because I know this course will be a good starting point for me to learn SwiftUI. THANK YOU SO MUCH FOR MAKING IT EASY FOR EVERYONE TO LEAR iOS DEVELOPMENT!!
Glad you enjoy my teaching style, Abdulaziz! Hope you enjoy the course 🚀
والله انك صادق ياعزوز
تابعت كذا واحد عاليوتيوب شرحهم كويس بس هالادمي شون* شرحه بطل ويخليك تركز معاه غصب ويمر الوقت بدون ماتحس 👌👍
worked with differents amazing programming languages, but in final the Swift is the king.
Congrats buddy! It's not easy to go through all the content with so much focus on it. Keep it up 👍
Thanks Elton!
Great start to SwiftUI for me with this video ! Thanks a lot !
Happy to help, Boris!
Excellent work couldn't explain it better keep the good job going
holy I just found out that you made a whole playlist of videos on swiftui. ily bro
Hope you enjoy them! There’s quite a few.
Hi Sir, Thank you for the courses, I am new with Swift especially SwiftUI and this really helps me to go through
This Sean, this might be your best video so far, keep up the good work!!!!
Thanks David!
You are doing a fantastic job. Thank you very much and keep it going.
I'm a React Native dev and this feels so familiar. Love the video, very straightforward.
This is really good, I'm coming from a Typescript/React background, and everything is making sense, I think I'm starting to like this language.
Your teaching is top-notch.
Thanks Yassine. Glad you enjoyed it 😀
same here!
You are great! thanks Sean.
Awesome I wrote my first ios App using SwiftUi,in just 2 hours
An additional tip I would recommend to put the HStack in ScrollView if you have 7days in a week just like me, so as to have more room to the HStack elements.
Thanks, Sean Allen looking up to your future videos to level up the swiftui game
Glad you found the video helpful, Mahesh!
This guy has excellent coding skills, he does things right, very impressed
Wow, a free appetizer, very nice. Thanks Sean!
You bet!
Loved it, Nice way to get into SwiftUI
Amazing video. One things that would help is if you could increase the resolution on the screen. It's sometimes tough to determine if something is a comma or period. Besides that I really appreciate you putting these together. Will for sure be buying your full course.
Thanks for the feedback, Christian. I try to increase my text size in my videos, but sometimes what looks like huge text to me while filming, doesn't translate to the video. Glad you enjoyed it tho!
I was waiting for you
Thanks so much! I've learned more in this one video than I did 3 weeks taking another course
Just imagine what the rest of my course is like 😉
Thanks a lot Sean for the beautiful explanation, it was great intro for me in SwiftUI!
Glad you enjoyed it, Akshay!
Very well organized and looks fun to use the SFsymbol.
Outstanding video, as an ab solute ground zero, no dev skills beginner this is the best explainer I've seen, thank you!
Glad you enjoyed it! Feel free to check out the rest of the channel. Got a lot of stuff on there :)
First video that goes straight to the point!
Glad you liked it!
Great video! I learned a lot
Excellent one brother, appreciate your efforts in sharing the knowledge with wider audience 👏👏👏👏👏👏👏
dude this is an amazing course, I am a very experienced UIKit dev, but have not been keeping up with SwiftUI, have been enjoying this video a lot, exactly what I needed.
Thank you.
Glad you are enjoying the video, Ali. Hope you enjoy the full course!
@@seanallen yeah actually I am watching the full course, fantastic job.
one very minor feedback, if the video player remembers my resolution / quality preferences between chapters that would be more convenient :) not a big deal though, we are so used to RUclips shortcuts and video player features that we expect them everywhere.
Thanks a gain for the great course
Happy to hear that. Unfortunately, I don't have control over the tech as I'm using a platform called Teachable.
Amazing video Sean. When you are going fast, you remind me of Paul Hudson, which is amazing
This was really fun to follow along, thanks!
Glad you enjoyed it, Osman 😀
Very nice video, Sean. You are the best!
Thanks! 😃
The best SwiftUI intro tutorial ever, thanks.
Great video, love your teaching style!
Glad you enjoyed it, Bob 😀
Sean, thanks for the clear and concise video.
Thanks, Gary
"image" should be capitalized. Try that and let me know.
Thank you! I learned so much
Happy to help.
This was AMAZING. Thank you so much. As someone with adhd .. u really kept my attention and I was able to absorb a lot. (Talking fast helps some adhd folk)
Happy to hear you enjoyed my teaching style, Marcus!
I was about to make the same comment. 😂 I also have ADHD, and I watched the whole video without being distracted! 😅
I follow your channel since a long time ago and I’ve learned A LOT from you during this time. I really want to buy the course to support you. I will just wait a couple of months for the US dollar exchange rate to get better (right now 6 to 1 😰).
Ps.: Please don’t stop with Swift News again! It is the only good thing that happens on Mondays!
Happy to hear the channel has been helpful, Roney.
KIS - Keep It Simple. Sean you are good at it.
Thanks Vinu!
This was a great tutorial, thankyou
Very impressive and very helpful!
The best I've seen, thanks
Your English is very clear to understand as non native listener. Superve lecture. Thank you.
Glad you enjoyed it, Shin!
Really enjoyed learning and very engaging, best course I had, thanks
Glad you enjoyed it, Vasudevan 👍
Looks like a great introduction to SwiftUI and well explained. A couple of points.
First, when it comes to UI elements I tend to stay away from using frames (apart from elements like .frame(maxWidth: .infinity)), like in the button you set a concrete width and height, which looks fine now but when the user starts changing their text size then I find it better to use padding instead, that way the Button will resize accordingly regardless of text size.
Around 1:15:00 where you add @Binding, is that required? From what I understand, you can just pass in a Bool. When you add a $ in front that refers to a two-way binding, i.e. something the user is changing on the screen, such as a TextField. When the isNight State is toggled the BackgroundView should be recreated with the new value of isNight.
Hey David, you are correct about Binding not being required in this case. This was an oversight on my part. I'm working up an addendum video for the actual course that highlights and explains this. Thanks for pointing it out!
Thank you for this comment! I was actually thinking the same about the @Binding variable...
I really like how answer my questions without me asking them. thanks
Happy to help, Brahim.
Super like to this video. Sean you really explained the State and Binding with such a ease
Glad you enjoyed it!
Thanks for your video, that's great to learn how to create App.
You made it so easy!!
Glad you enjoyed it, Andrews 😀
Very informative video, thank you so much!
Sean Allen and his content are what make the internet great.
😀
underrated. thanks a lot mister!
Happy to help!