Learn the Essentials of Swift in one hour

  Переглядів 162,965

Paul Hudson

Paul Hudson

День тому

This video walks through all the essential language features of Swift in just under one hour, and is aimed at two groups of people: folks who have completed up to day 14 of the 100 Days of SwiftUI and want to review what they've learned, and developers with extensive experience of other languages who want to transfer their knowledge to Swift quickly.
This video is very fast! If you're struggling to understand concepts such as arrays, functions, closures, and similar, you should consider following the videos in my 100 Days of SwiftUI course at www.hackingwithswift.com/100/... - they are much slower, providing much more explanation and example code along the way.
00:00 Introduction
01:21 Creating constants and variables,
01:59 Strings
03:38 Integers
04:38 Decimals
05:01 Booleans
05:23 Joining strings
05:59 Arrays
07:39 Dictionaries
08:16 Sets
09:10 Enums
09:40 Type annotations
11:50 Conditions
12:46 Switch statements
13:25 The ternary conditional operator
13:55 Loops
16:24 Functions
17:39 Returning multiple values from functions
18:45 Customizing parameter labels
19:52 Providing default values for parameters
20:38 Handling errors in functions
22:46 Closures
25:02 Trailing closures and shorthand syntax
26:22 Structs
27:43 Computed properties
28:37 Property observers
29:16 Custom initializers
30:10 Access control
31:56 Static properties and methods
32:42 Classes
39:49 Protocols
43:49 Extensions
46:00 Protocol extensions
49:31 Optionals
49:31 Unwrapping optionals with guard
51:34 Nil coalescing
53:06 Optional chaining
54:09 Optional try?
55:37 Wrap up
56:52 Dog reward

КОМЕНТАРІ: 178
@dc366
@dc366 Рік тому
I'm an experienced programmer in other languages. I'm so glad I found this video. Learned a lot in an hour. No point watching other tutorials that are much longer. You do a very good job explaining everything quickly.
@UTJK.
@UTJK. Рік тому
He's a master!
@cwbh10
@cwbh10 9 місяців тому
Exactly the same for me! Helpful when I just want to quickly pick up Swift to start
@linuxhopper6947
@linuxhopper6947 2 місяці тому
That what I was thinking, great video! thanks
@notabeneenterprises4210
@notabeneenterprises4210 18 днів тому
Paul. What a fabulous video! So refreshing to find a "just the facts" approach tailored to people who have been around the block a few times instead of the interminable glacier-like pace of most "intro" tutorials. Best hour I've spent on UKposts in quite a while.
@PetePeteRepeat
@PetePeteRepeat 2 роки тому
What a phenomenal video! Fast paced, no-frills, and straight to the point... as someone with extensive experience in JavaScript and modern web dev, these skills are easily transferrable to Swift! Thanks Paul :)
@J4raz
@J4raz 2 роки тому
Do one hour SwiftUI please :D
@gustavomonge1785
@gustavomonge1785 8 місяців тому
Please !!
@samr.4692
@samr.4692 2 роки тому
What an amazing video!!! I was craving for a refresher on the essentials, one year after finishing #100DaysOfSwiftUI. Thank you very much for all you do for the community!
@zenchiassassin283
@zenchiassassin283 Рік тому
(mostly for myself) 20:39 Handling errors or exceptions in functions 32:42 Classes vs struct 47:20 Optionals
@thetrain1919
@thetrain1919 2 роки тому
Paul, thank you for all the hard work you do on the videos and website. The forum has been invaluable for me!
@_engid
@_engid Рік тому
Fantastic tour through the language! Extra points for the crisp audio!
@streetchronicles5693
@streetchronicles5693 Рік тому
Insanely well put together. I work in dev and havent used Swift in over a year, so this video was perfect to remember all the little Swift specific things
@Skjoldborg8
@Skjoldborg8 8 місяців тому
Thank you so much for the awesome walkthrough, Paul! 🙌 I will definitely be following you, and take part in the 100 day course! 📚
@artempolivanov1802
@artempolivanov1802 2 роки тому
Thanks a lot, Paul! Great material, as well as the whole 100 Days course.
@BTGAndy
@BTGAndy 8 місяців тому
Fantastic content Paul, I'm learning so much!
@thaysmartinez
@thaysmartinez 9 місяців тому
I've been following the 100 days of SwiftUI and this is definitely a must-watch refresher of the basics. The course is so well structured, with short videos and well thought explanations and examples that I hadn't realised I learned this much. I'm glad I watched until the end, the Samoyeds made it all worth it :)
@kindofexistentialist
@kindofexistentialist 2 роки тому
One of the best teachers I've had. The end of the video melted my heart.
@tibettenballs4962
@tibettenballs4962 Рік тому
Yo. You probably need a cardiologist.. or at least a foot rub.
@terryterry1655
@terryterry1655 Рік тому
Sorry i stepped on your melted heart.
@t4n
@t4n Рік тому
On day 15 of the course!! You're an amazing teacher.
@vivasfermin
@vivasfermin 2 роки тому
Thank you so much Paul. Your videos are very well explained. Excellent work!
@joevrolijk
@joevrolijk Рік тому
As a professional java dev this really helped me getting started on swift! Awesome video, all you need as a developer coming from other languages! Subscribed to the channel!
@husfus
@husfus 2 роки тому
The video I needed! Coming from JavaScript/TS, I’m familiar with most of the concepts here. The only this missing from the video is chapters - cause I will be coming back to it. Thanks for this awesome video Paul.
@tharindudarshana6480
@tharindudarshana6480 Рік тому
Great tutorial ! Thank you very much for the efforts you put in these tutorials
@tdovas
@tdovas 7 місяців тому
excellent video! thank you!
@KimbrellBrad
@KimbrellBrad 2 роки тому
Very well done sir! Nice crash review for those getting started. Much more in your 100 Days of Swift & 100 Days of SwiftUI on your site. I am taking the 100 SwiftUI as a review and am finding that there are several items that I had not seen yet. I'm sure more to come so I'm in for the entire 100 Days! And most amazing...it is free! (full disclosure: I am an HWS+ member and find it offers tons of value for any skill level!)
@FelipeCampelo0
@FelipeCampelo0 7 місяців тому
Great work!
@iamikhan
@iamikhan 2 роки тому
amazing, just finished whole video , coming from different stack to swift look promising. Thanks
@AnthonyLerpiniere
@AnthonyLerpiniere 2 роки тому
This is exactly what I needed to get back into Swift programming!
@priyamohod1510
@priyamohod1510 Рік тому
Excellent efforts! It helps to be on track. Thank you!
@swetakadam1075
@swetakadam1075 9 місяців тому
Paul, this is the best video, I am so glad I found this, it is very high quality content for 1 hour, this video helps a person trying to transition from Kotlin/Java to Swift in a swift manner, you are best tutor, thank you for quality work, wishing that your subscribers reach 1M value soon.
@TheSlyDragon93
@TheSlyDragon93 2 роки тому
This is perfect I was looking for something like this as junior web developer looking to try out swift. Many thanks for this Paul
@robotman011
@robotman011 2 роки тому
This was great! Just finished the first 14 days of SwiftUI so this is the final vid before I move on to the rest!
@immmax
@immmax Рік тому
Thank you! It's important to put into practice what I learned. So, again - thank you very much for this course and the way you explain things! ❤‍🔥
@siarheiramaniuk1419
@siarheiramaniuk1419 Рік тому
Thank you a lot for this job! It was really nice to quickly go through all the topics that I have studied lately.
@EAGLEMANFREEDOM
@EAGLEMANFREEDOM 10 місяців тому
THANK YOU. this was exactly what I was looking for. Work as a java BE dev and I was reallllly not looking forward to sitting thru an entire beginner course to flesh out an app idea.
@joeldcanfield_spinhead
@joeldcanfield_spinhead 11 місяців тому
When I started reaching limitations customizing my Mac with AppleScript I tried to teach myself Swift and it took minutes to lose my way. After 30 years of web dev, I feel pretty solid in some areas, but I really needed this video to get up and running with Swift. Your warnings were well taken; it is indeed lightning fast. But pausing for note-taking, I feel like I'm ready to play with the 100 Days course and build some stuff. Thanks ever so much, sir.
@imranonthenet
@imranonthenet Рік тому
Excellent tutorial !! Thanks a lot Paul
@brendenowen2609
@brendenowen2609 Рік тому
You have a knack for explaining Swift. Thanks!
@JulianHarris
@JulianHarris Рік тому
Absolutely fantastic and cemented my conviction Swift is my favourite language (and over 30 years I’ve worked in C, C++, Object Pascal, Ruby, PHP, Go, Python, C#, and Dart).
@romagoot5289
@romagoot5289 9 місяців тому
Best teacher ever)Thank you
@user-nd9dx8ph5z
@user-nd9dx8ph5z 9 місяців тому
Fantastic video. It's great because it's concise, but also full of information; little to no time is wasted on fluff. I fell into the latter target audience category as described in the description (I have experience in other languages, but not so much with Swift). Watched this on 1.5x speed, and I feel like it gave me pretty much everything I was looking for in under 40 mins. Quite pleased 🙂.
@annichan113
@annichan113 2 роки тому
THIS is what I was searching for! Perfect speed for folks who already have programming experience! 👍
@tibettenballs4962
@tibettenballs4962 Рік тому
Hi anni. I sell apricots to someone with the same name. Do you like apricots, by any chance?
@bravehearted1010
@bravehearted1010 Рік тому
One of the best Swift Basics video :D
@rdtba21qw
@rdtba21qw 2 роки тому
Brilliant stuff - thanks Paul.
@SOBHHI
@SOBHHI Рік тому
Thank you for this tutorial. Excellent crash course for those of us who already know a language and want to pick up Swift.
@luisgomezreus732
@luisgomezreus732 2 роки тому
Fantastic summary of Swift !!! Thank you very much Paul ... and how beautiful are your dogs ❤️
@xanwtf
@xanwtf Рік тому
Excellent video to wrap up the first sections of 100 Days of Swift UI, and a bonus very cute doggo at the end!
@aplbep
@aplbep Рік тому
Amazing video as always!
@user-he4cy1cm9x
@user-he4cy1cm9x Місяць тому
This video is amazing, thank you so much for taking the time to teach in such a efficient and clear way! I am very grateful! :)
@semilife
@semilife 2 роки тому
Great whirlwind tour of Swift Language. You are a gentleman. Thanks.
@martinkowollik1432
@martinkowollik1432 2 роки тому
Thanks a lot Paul! Your lossons are awesome!
@foleoR1891
@foleoR1891 2 роки тому
Wow! Thanks for the video! You’re a good teacher.
@dhatawesomedude
@dhatawesomedude Рік тому
Thanks Paul. Just what I needed.
@YannSaintLaurent
@YannSaintLaurent 2 роки тому
Lots of good bits in there... thanks Paul
@ekipkalir3429
@ekipkalir3429 Рік тому
Amazing Paul, really good content and to be fair a fast track check of Swift .
@emptypocket2516
@emptypocket2516 Рік тому
ITS WORKING! nice job dude
@hirenrafaliya3577
@hirenrafaliya3577 2 місяці тому
I'm an experienced programmer in Kotlin & Javascript. This is my first video on Swift and just finished watching it completely and I'm now good to go to directly jump on making apps with Swift. Totally worth 58 minutes.
@tontonchan3833
@tontonchan3833 2 роки тому
I like this version of 100 days of SwiftUI. Build the foundation before deal with real coding. Previous version actually make sense to me, learn from real work is a common way to learn something. However, I spent quite a lot of time to digest the new concept. With this new flow, people learn all the basic concept with simple exercise. It save a lot of time.
@AllenThomasVarghese
@AllenThomasVarghese 6 місяців тому
Nice and quick intro for experienced programmers
@KevinSmith-qr9rt
@KevinSmith-qr9rt 10 місяців тому
Thanks for the video. Lovely meeting your dog at the end.
@scottthomson2438
@scottthomson2438 2 роки тому
Fantastic, thanks Paul!
@yalcinozer4434
@yalcinozer4434 Рік тому
Before this video, I have read the official docs. But I can easily see that I missed some really important parts. Thanks for the clear and concise summary.
@annabusby4304
@annabusby4304 5 місяців тому
Just completed the first 15 days of the 100 course! It’s been brilliant so far!!! Really, really good work :D I also have a coding dog mascot called Bella, I think she’s learnt that if I’m sat the computer and she hears your voice on a video then it’s time for her to nap haha
@sujathathakur8504
@sujathathakur8504 2 роки тому
As always Awesome!
@taash32
@taash32 Рік тому
for me when i first came from a Kotlin & Dart Background, this Video was the best choice to watch, then again its the best again and again to remember when you forget something 1 hour crash course that summarizes 52 hours of trying/googling Much Respect
@MrMarioPrieto
@MrMarioPrieto 7 місяців тому
This is the Swift Bible for programmers coming from other languages, where we already know the concepts and it is a matter of how to do them in Swift. Thank you very much!
@rajaspydey
@rajaspydey 2 роки тому
damn. this is exactly what I was waiting for. FInished 100 days course earlier this week and wanted to go over all of them again to fit the puzzles back together. from basics. this is simplifying my job.
@d42
@d42 Рік тому
shuba shuba. how is your journey going?
@bharadwajb2902
@bharadwajb2902 2 роки тому
Really good compilation!
@NeylaRojas
@NeylaRojas 2 роки тому
I did enjoy this video very much, specially the last part, one treat more for Arya and Luna please, pure love 🐶
@migalejo85
@migalejo85 Рік тому
Kudos to this channel, everything is always very good explain simple and to the point. Keep the good work. :-)
@TsiriniainaRakotonirina
@TsiriniainaRakotonirina Рік тому
I can't thank you enough as I went through this the whole day and took note greatly. God bless you Edit: You earned a new subscriber
@Indently
@Indently 2 роки тому
Very well done. Thanks!
@jessestone117
@jessestone117 Рік тому
Such excellent videos!
@roryblyth3396
@roryblyth3396 10 місяців тому
What a stark raving sane video. When developing for The Apple Stuff, I formerly used Objective-C (the sanest OO C) and Xamarin. I love them both with all my nerdy little heart, but now that I'm working with watchOS, I'm finding Xcode is the "best" option. Can't get far with SwiftUI when you don't know the basics of Swift itself. After going through eight billion WWDC videos and tutorials, I finally found what I needed: A fast primer on Swift for devs. You're articulate, get to the point, and now I understand the funky Swift ways. I think it's an ugly language, but I need it. You made it a little prettier to mine eyes. Also, thank you for not starting every single spoken statement with, "Now I'm gonna go ahead and..." After twenty years of giving and watching demos, I appreciate the elegance. You're something else, Mr. Hudson. May the praise and the cash fall into thine coffers; may thine efforts wield bounteous rewards.
@Jay-tr7ue
@Jay-tr7ue 10 місяців тому
Handling errors with Swift is just cleaner than Javascript. The error enum combined with do.. And setting up all the catch statements just makes soo much sense!
@DavideMarzorati
@DavideMarzorati Рік тому
Thank Man for your work..I appreciate!
@legenarian6811
@legenarian6811 3 місяці тому
ty bc as a competitive programmer who has never touched oop before this is a very nice crash course that got me into swift without much hassle
@mehmetderan1208
@mehmetderan1208 Рік тому
Great tutorial ! Thank you so much..
@cwbh10
@cwbh10 9 місяців тому
Amazing video and super cute dog!
@oleholgerson3416
@oleholgerson3416 2 роки тому
Thank you very much for your great work
@jemsophia
@jemsophia 18 днів тому
oh my godddd this was fantastic, thank you soooo much
@ProffesorGomez
@ProffesorGomez 26 днів тому
Wow @Paulhudson I’ve never finished a complex tutorial before while taking notes. It took me 15 days but I finished because you’re such a good teacher and also I have a passion project that I need to finished. Thank you Paul 💚
@azurlemo7988
@azurlemo7988 2 роки тому
Thank you, you're amazing!!!!!
@hcrnn7518
@hcrnn7518 8 місяців тому
Kotlin and Swift are so similar. This was super easy for me. Great tutorial.
@feddardslark
@feddardslark 2 роки тому
Thanks a lot Paul !
@EricTMCode
@EricTMCode 2 роки тому
Thanks for this Amazing video ! Thank you very much for what you do !
@alicancagatay2374
@alicancagatay2374 Рік тому
Fantastic !! Thank you very much.
@LocNguyen-kk7dp
@LocNguyen-kk7dp 2 роки тому
you're my hero. awesome
@Akshatgiri
@Akshatgiri Рік тому
Amazing video!
@UXSpecialist
@UXSpecialist 2 роки тому
Thanks for this
@brucehe9517
@brucehe9517 Рік тому
Helpful video thank you.
@yalcinozer4434
@yalcinozer4434 Рік тому
Great content
@Donnshin
@Donnshin Рік тому
On to day 16 tomorrow. Thank you Paul, I'm really hoping this works out for me.
@carmackxiao1304
@carmackxiao1304 Рік тому
Very good video, really finish in one Hour
@mysticsunonline
@mysticsunonline Рік тому
Great Video...Very inspiring...
@user-wf1hp4in1w
@user-wf1hp4in1w Місяць тому
very nice video, thanks!
@awais341
@awais341 Рік тому
That's what I was looking for. Having Dev experience in Objective C, Java, Php & Python. This was what I was looking for one stop shop in order to get my hands dirty with Swift...!
@yoliocaffeyole4602
@yoliocaffeyole4602 Рік тому
You are the bomb, @twostraws--I am grateful to have stumbled upon you 🎃 Cheers!
@MarkJaquith
@MarkJaquith 10 місяців тому
I wish I'd watched this video first. Really great video.
@ameen95m
@ameen95m 2 роки тому
Thank you!!
@user-zn5pe3dc1q
@user-zn5pe3dc1q 3 місяці тому
I love your dogs, so cute!
@rct999
@rct999 4 місяці тому
Swift looks very elegant. Working with php and js, I sometimes forget how nice things could be.
@elhelalyQ
@elhelalyQ 2 роки тому
Outstanding
@kikleine
@kikleine 2 місяці тому
The wrap up is my favorite part
@kikleine
@kikleine 2 місяці тому
Scratch that, hadn't seen the reward part yet
8 Things I Wish I Knew When I Started Programming
19:51
Paul Hudson
Переглядів 36 тис.
Learn Go in 12 Minutes
13:34
Jake Wright
Переглядів 937 тис.
Nonomen funny video😂😂😂 #magic
00:29
Nonomen ノノメン
Переглядів 52 млн
SwiftUI + Metal - Create special effects by building your own shaders
1:16:26
Swift Closures Explained
14:23
Sean Allen
Переглядів 55 тис.
Python vs Swift | Chris Lattner and Lex Fridman
11:16
Lex Clips
Переглядів 145 тис.
Why I *highly dislike* iOS Development
10:38
mayuko
Переглядів 337 тис.
Swift API Calls for Beginners (Networking) - Async Await & JSON
25:35
Swift - Class vs. Struct Explained
7:28
Sean Allen
Переглядів 28 тис.
How to become an iOS developer in 2021
53:33
Paul Hudson
Переглядів 161 тис.
ENUMS in every programming language (All you need to know)
24:38
CodeBeauty
Переглядів 25 тис.
How I learned iOS Development in 30 Days? 0 to Pro!
13:26
Harnoor Singh
Переглядів 170 тис.
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Переглядів 649 тис.
Нужен ли робот пылесос?
0:54
Катя и Лайфхаки
Переглядів 706 тис.