Swift Programming Basics: Structures (Lesson 8)

preview_player
Показать описание
In this lesson, you’ll learn about the basics of Structures in Swift. You'll also learn about the properties and methods that live inside your structure. Also, you'll learn how, depending on where you write your code, the scope of a property or method can change. Finally, you will learn about computed properties.

PS. This is part of the How To Make An App (SwiftUI) series. To view the full series, use the links below.

Get all of the source code, Xcode projects, resources and assets here:

🚨 SPECIAL CWC+ OFFER FOR YOUTUBE:

How To Make An App playlist:

⏱ Timestamps ⏱
00:00 Intro
00:59 Intro to the Swift Structure
02:25 Declaring Structs
04:58 Example of a Struct
07:56 The Scope
10:55 Computed Properties
15:02 Conclusion

MY FREE ONLINE COURSE:

CWC+ PROGRAM:

WEEKLY UPDATES VIA EMAIL:

CONNECT:

ABOUT CODEWITHCHRIS:

#CodeWithChris #HowToMakeAnApp #SwiftUI
Рекомендации по теме
Комментарии
Автор

how can u hate on this man, thank u Chris <3

salvatoresabba
Автор

You are the best. I have watched many many swift videos, even from Stanford. You are the best. Period. End of story.

pierreroberge
Автор

You are so amazing Chris! So grateful for you and the work you do. So generous

amazjunelee
Автор

Hi Chris, Heartily thank you for your videos. For last 3 years I have been coding on Java only for my Android apps. Since then I don't know how to start coding for iOS devices and I had watched some videos but those are not very understandable like your videos. For last 2 days I have been watching your videos and really like them and every video is like a diamond who are looking to code for iOS like me. Now I'm eagerly waiting to start my first iOS app after completion of all video courses. Once again thank you for your understandable explanation and videos.. Keep it up and Stay Safe.

ashokg
Автор

Thank you Chris, I like how you teach. It is impressive how you make challenges, how coherent your lecs are, yo are one of the best tutor I have ever seen. Thank you.

manharjoshi
Автор

So far I'm learning really fast and can do the challenges without backtracking through the test playgrounds from the previous lesson, like it's all in my mind. 😃

JDRos
Автор

Following everything so far and looking forward to learn more!

sinankhadhouri
Автор

Enjoying and can still follow with the swift programming so far. Keep it up Chris!

ats
Автор

Chris you are Fantastic ! I totally enjoy your videos from France. Thank you very much !

MarcSOUBEYRAND
Автор

Hi, I like you video a lot! Can please make a video how you can encrypt and decrypt a string? I cannot find any video’s about this.

casperkrook
Автор

I wasn't really interested in programmation and all this stuff of men (or women) in glasses and on computers. Sorry for the cliché ^^
I began to learn Python in class, and I love it ! That's simple and intuitive.
But, of course, the programmation team came to me again : I am doing an internship, and my aim is to do an app to make things easier for the people I work with. here I am, learning Swift with Openclassrooms, first, but their version of Xcode was reaaaally too different from mine (they have 9.0 and me 12.4).
And I discovered you, Chris. What a good discovering !
How you explain things... that's so clear for me that I think maybe I'm just misunderstanding all XD
So, to answer your question : I really am enjoying this lessons of Swift. And I'm very thankful to you who helped me a lot. I'm going to do all the 14-day challenge of course !
Thanks again and have a great week, week-end, day ...!
(sorry for my English, I'm French ^^)

piou_ne
Автор

No need for a 'global' keyword! love it!

sebastiancosta
Автор

You know what... I had been running an adblocker for youtube... but only for you.. i've disabled adblocker.. I hope you might have earn something .. And 'm watching full length of ads. Just for you! 👍🏻

muhammadfarooqi
Автор

yes i am understanding swift. i did learn python basic before so it was bit easier.

gagan-tbpp
Автор

thanks for video, q : how we can print out the func inside strut ?

faisala
Автор

Hey Chris I'm trying the challenge for this lesson and I can't figure it out. I've looked at your answer but I keep getting errors. Could you make a video explaining the solution. Also what is a private var?

keegan
Автор

hi Chris, I would like to build a multi-page app, any tutorial videos??

hesshess
Автор

Hi Chris! I love this program so much and I am currently doing all your challenges that you have set up. But, for challenge 7-12, I'm not sure whether I got the right answers or codes and I want to check it to make sure I am making progress. Is it possible for me to get the answers? Or do I not know how to access the answers? Anyway thank you for all the lessons! :)

jodysalim
Автор

Your videos have been super helpful for me - I really appreciate all the work put into them! I have varying amounts of experience with C# and Java... but Swift is feeling like a pretty different ballgame to me in a few ways. I may be jumping ahead a bit, but I'm trying to figure out the difference between a Computed Property vs a Closure, and when one might choose one or the other. Is this discussed in a later lesson?

EggTamago
Автор

Good diagram but the example is a bit nebulous. Im a Swift beginner but thinking of Struct more like objects such as a material, vendor, or other keyed items works better for me. Good pace and good communication.

FirstForty