Swift Programming Basics: Functions (Lesson 7)

preview_player
Показать описание
In this lesson, you’ll learn about functions which helps organize and group together your code statements so that:
#1: all the code in a function can work together to serve a specific purpose.
#2: you can run a group of code statements by calling the function

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
01:13 The View Update Lifecycle
02:25 The Swift Function Syntax
04:07 Functions with Input Data
06:59 Functions with Output Data
11:53 Functions with Multiple Parameters
13:30 The Parameter Default Value
15:02 The Function Argument Labels
17:45 How to "Hide" the Argument Labels
19:02 The Function Signature
21:02 Conclusion

MY FREE ONLINE COURSE:

CWC+ PROGRAM:

WEEKLY UPDATES VIA EMAIL:

CONNECT:

ABOUT CODEWITHCHRIS:

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

Was trying to learn swift from books but was not consistent with it. Took a couple months until I found your videos that actually got me back into learning swift and has motivated me to continue to make my app idea into reality .

juanventura
Автор

I swear you're the Bob Ross of coding. I can watch you all day!
Thank you.

RashaadFontenot
Автор

To be honest in just started learning how to code with swift, your videos has made it more easier to understand, you such an amazing teacher

ChuchuJS
Автор

This is a journey not a marathon, for me. I visit the Swift learning process daily and it’s slowly resonating. I was fooled into believing that this could be learned in a short amount of time. Don’t believe everything you hear on YouTube boys and girls. Keep up the good work Chris.

JoeDoe
Автор

The greatest teacher I have ever seen. Thank you for those great videos

goldplatingservice
Автор

Chris, you are amazing, brother! I learned a lot after a week and, because you encourage me with your videos, I bought the new MacBook pro with m1 to practice. I already told you in another video that I'm a musician, so I've never written code in my life before your videos! Thanks a lot!

trupanunta
Автор

I’ve been following your videos for the last two years. Chris you’re such a great teacher 👑 I appreciate your hard work quality of your content. It’s helped improve my swift coding tremendously 🙌🏾🙌🏾🙌🏾

emmanuelrobi
Автор

The best iOS instruction on the internet! Thank you Chris!

KanOfWhoopass
Автор

Please make a Closure Tutorial. Would help me so much the way you teach is so great!

fountmediahouse
Автор

You’re a very great teacher. I’m using your videos to fully understand another program that I’m in. It would be good if we can talk further too. Thank you for help and great work!

lorenzomiller
Автор

these lectures are soothing and addictive :)

saipraneethtalluri
Автор

Enseñas muy bien, no se ingles, solo muy poco pero eres tan didáctico que entiendo totalmente tu curso, estoy aprendiendo Swift cada día mas. Felicitaciones.

haroldmoran
Автор

Your videos are great, I just got sucked in tonight and ended up at lesson 7. Great content!

TerraRiderAdventures
Автор

Very clear, as usual. Can I say function with return makes the function more reusable, since, with the void, it's not?

larryho
Автор

Thanks, always nice your videos with all of the details, but my question is, is that still the same in swiftUi or is it only for UiKit

Mitch_datsme
Автор

ooh.. so making things easy is all upon a teacher.. and i'm happy you are mine!. 👍🏻

muhammadfarooqi
Автор

loved this one, you did a great job explaining

Maker
Автор

Hey Chris.
First of all, thanks for the helpful videos on swift and Xcode.
I wanted to know if you have, or knew of a good playlist or videos focused on coding within Playgrounds on IPad (not the same as Xcode on Mac, right?) aimed at newcomers. Thanks in advance.

danielrcoes
Автор

very good, thank you. I have learned a lot.

MeineFresse
Автор

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