SwiftUI Basics Tutorial

preview_player
Показать описание
If you've enjoyed this video and want to learn more, here's a 15% off promo code for the full course:

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:

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:

My Twitter:

My Podcast - iOS Dev Discussions:

Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):

Ray Wenderlich Books:

Ray Wenderlich Videos:

Paul Hudson's Hacking With Swift:

Donny Wals - Combine Framework:

Mark Moeyken’s SwiftUI Views:

Learn Advanced Swift Here:

#swift #softwaredeveloper #iosdeveloper
Рекомендации по теме
Комментарии
Автор

If you've enjoyed this and want to learn more, here's a 15% off promo code for the full course:

seanallen
Автор

You explain the logic behind the code and this is something I find worth respecting. Thank you.

aelhkmm
Автор

"its nothing in detail, just for you to see how its done fast".

- explains everything in detail. - you are awesome dude

creatorshorizon
Автор

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.

universitythings
Автор

Great! Now I know what I'll be doing this weekend.

MarcoCarmonaT
Автор

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!

BasedGob
Автор

best SwiftUI walkthroughs hands down. thank u

paulbrymer
Автор

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.

noquarter
Автор

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.

VetDev
Автор

I noticed a big mistake at 1:16 The point of Binding is to allow a sub-view to change the data. Since your BackgroundView doesn't change the value of isNight so it should just be declared as a let. When isNight state is changed the ContentView body is run, BackgroundView is recreated and if the value of isNight is different from the last time then its body is run. If ContentView's body was run for a different state change and the same value of isNight is used to create BackgroundView then its body is not run.

indiekiduk
Автор

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.

davidhughes
Автор

this was the best “beginner” tutorial for any programming language i’ve ever seen. Thank you so much, you helped a ton!

jamesvanderbilt
Автор

holy I just found out that you made a whole playlist of videos on swiftui. ily bro

upcomings
Автор

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.

josstaneke
Автор

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.

prachibile
Автор

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 YouTube, 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!!

abs
Автор

Sean Allen and his content are what make the internet great.

RunOs
Автор

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.

lucasdebritoarruda
Автор

Really like the tutorial! Especially the speed that you're moving forward and introducing new concepts! Can’t wait for the next tutorial.

vicoseemann
Автор

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.

AliMoeeny