Swift Programming Basics: View Update Lifecycle, Variables and Constants (Lesson 6)

preview_player
Показать описание
In this lesson, you’ll learn about the app lifecycle which includes retrieving and processing data, rendering the UI and handling user interaction. More importantly, you’ll see how Swift code puts this cycle in motion and keeps it going.
You’ve already seen what Swift code for the user interface looks like. In this lesson, you’ll begin to learn how Swift code is used to keep track of the data in your app!

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:03 The View Lifecycle of an App (Diagram)
03:00 What is an Xcode Playground?
04:43 What does data look like?
04:54 Swift String
05:05 A Comment
05:32 Swift Int
05:43 Swift Double
05:55 Swift Bool
06:26 How to keep track of data?
06:38 The var keyword (variable)
08:17 The print( ) function
12:29 The let keyword (constant)
13:59 Conclusion

MY FREE ONLINE COURSE:

CWC+ PROGRAM:

WEEKLY UPDATES VIA EMAIL:

CONNECT:

ABOUT CODEWITHCHRIS:

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

man I can't believe this content for free. You're a great and inspiring teacher. Greetings from Argentina.

gregoax
Автор

You are making a difference in somebody's life and "inspiring" just doesn't do you justice. Thank you.

prof.rogeriosantana
Автор

Hi Chris. I'm from South Korea. I almost gave up learning programming with a book but I started again with your lesson. I think Youtube is much more efficient than a book and you're the best iOS teacher that I've ever seen.

daehanroh
Автор

Chris is the best teacher I've ever met in ma entire life. Thanks a lot sir🙏

haestkhofimajesty
Автор

First time coder here...I have no laptop😬 I'm using my android phone to watch all your videos🤯you are an awesome teacher. Im confident when I get a laptop I will be able to recap your teachings..Thank You in advance for my Successes🎮👩‍💻📲

bumpintheG
Автор

Knew 4 programming languages prior too learning swift. Your videos have been amazing and i appreciate you greatly!

skrboiigankedyobihh
Автор

It's a a language you can pick up quite easily! It's C-based and has many modern features. I am excited to see how this language evolves. This has to be like when C programmers from the 80's first starting using Python! You're videos are great! I just graduated college, and I mostly know the older general purpose languages. I'd lie if I said I'm not impressed by the language and how easy developing for Apple is, you have all you need right out the box when you buy a new Mac. Love it!

sebastiancosta
Автор

The best coding teacher I have ever had

jacques
Автор

Starting learning swift code ! Your videos help me a lot Chris . Thank you

Kumar-qdmp
Автор

I watched the course you made 2 years ago fully and now I am here to repeat some stuff. 
Amazing to see how much your (already great) teaching has improved since!

friedalichtenberg
Автор

I know C++ and python and I learned a bit of HTML, CSS and Java. 

Love the videos and how you explain things. A lot better than my engineering professors LOL. Will definitely reach out to you once my app is finished. Thanks again for the help. -- Juan

juanventura
Автор

Cris you are the best Teacher . Thank you for videos, lessons that you gave us. You are inpiring teacher and with your lessons it is very interesting and easy to learn even complicated things in swift language 🤩🤩

botirtolqunov
Автор

Hello Chris
thanks for teaching, this type of classes for us

mounikairugula
Автор

There is no way I can thank you enough

heshamabdo
Автор

Your material is so well organized and easy to follow! Amazing! Thanks for all the hard work! I am loving your videos so far!

egroves
Автор

super easy to follow and the videos are great length to keep up each day! thanks for the great work :)

mj
Автор

first time learning thank you! This is so valuable!

pteradacularmix
Автор

ahh the war card game. The first app i made 3 years ago when I started learning how to code. Time flies

bruhmoment
Автор

I’ve done the learn to code lessons in the swift playgrounds app, but other than that this is pretty much my first coding lessons. By the way, you’re a great teacher!

Stevesvideoshelf
Автор

Thank you for the helpful videos! I actually do already know how to code but I am excited to learn swift from you in the near future (10 seconds from now).

josephferraro