Learn Swift for Beginners - Ep 5 - Loops Part 1

preview_player
Показать описание
This Learn Swift series is designed for beginners with NO programming experience. It uses the latest version of Swift 3 and Xcode 8.

In this lesson, we talk about for-in loops!

If you've ever wanted to learn Swift programming and build your own apps, this is it! Hands-on training with PDF lesson notes and cheat sheet... Follow along! It's the best way to learn!

I'll be in the comments to help you along as you learn about Swift concepts such as variables, data types, if statements, loops, classes and more!

This free Swift tutorial series is best paired with my How To Make An App with No Programming Experience series which can be found here:


_________________
FREE RESOURCES (download links)

Get a customized roadmap for your app and start building it in 7 days:


Swift Language Guide:

Swift Open Source:

PC Users:

_________________
FUNDAMENTALS COURSE


_________________
CONNECT WITH ME

For more tutorials on how to build iPhone apps, make sure you join and visit my site where you'll find a community of like minded learners! Learning something new is always more fun with other people!

_________________
FOLLOW ME

Twitter ► @CodeWithChris
Instagram ► @CodeWithChris

_________________
ABOUT ME

Hi I’m Chris! I’m dedicated to teaching fundamentals about how to make an app. This is important if you’re trying to land an iOS job, be a freelancer, increase or start a business with an app idea. On the site, you'll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift 4, Xcode 9 and app building from my course and materials!

Here's just a sample of the success stories my students have sent in:

Intro & Outro music

#Swift #iOS #App
Рекомендации по теме
Комментарии
Автор

I am a 11 year old this taught me to code is amazing.

davidlovett
Автор

This series is awesome! I already know C++ and Java, but skimming this video along with Chris' explanations helps me learn the syntax for Swift 3.1 faster. Subbed.

gabrielraphaelgarciamontoy
Автор

i can't believe how easy to understand the basics of swift 3 !!

thank you very much i really enjoy watching your videos ^^

topblogger
Автор

i really appreciate your comforts man
i really need this to know how loops work in swift

abhishekdadwal
Автор

best swift tutorial hands down! Much love, keep posting brother

christopheratkins
Автор

awesome chris! You have made it hell easy to understand for newbies ... thanks for the efforts

viksk
Автор

How do i accept an integer value from the user?
By the way great teaching methodology

krishanmalhotra
Автор

Hi Chris, I was curious how you would be able to print the results of the for-in statement one by one. A good example I believe would be - when you level up a character its total damage increases by 2 each level. How would we print or insert that data?

litrich
Автор

great series I know java and c# but swift is similar which is cool but how do you control the iterator in the for in loop for example lets say you wanted it to subtract instead of add would you have to put 1...-5?. I have never heard of a for in loop until today. Its amazing how swift knows what your implicit variables are but wont that get confusing as a code base grows maybe its just me and im used to explicity setting variables to types.

hurasane
Автор

So, Chris, we talked before yes, but what do the {curly braces} mean?

hextaniumfranklin
Автор

This is still freaking tough to learn, is there an easier way to understand this? i can repeat this over and over but mayn lol this is a gift but thank you

RadenSoCal
Автор

What is the significance of using the word "index"?

trentkelly
Автор

Darn, swift looks so interesting. I wish I could develop with it with windows. Guess I got to save up.

FewMinuteProgramming
Автор

Hey chris I’m watching this video and when typing in my “sum+= index” i get a pop up that says it cannot concert value of type (unsafe pointer ) could you help me explain why I get this pop up and how I can fix it if it’s not too much of a hassle? Thanks chris love the videos !

joshuachavarria
Автор

Hey Chris! Can't really understand why you moved the var sum and print("") out of the loop in order for the numbers to add up? Like why does it not work inside the loop?
THANKS

vokadekaestheticssalon
Автор

Great ! I have one question:

Why is it 15 in the end ? sum is 0 and index is 1 to 5. Then, in the loop, you declare that sum is actualy sum + index, which means 0 + 1 to 5, which is... 5 ? And if we repeat (or loop) that 5 times, we would get 25, no ?

Little bit confused student

MartinJurus
Автор

Hello at 9:18 how is the print out 15? Thanks in Advance Guys!

mpgmafia
Автор

"immutable value 'index' was never used; consider replacing with '_' or removing it" --- What does that mean?

geangarcia
Автор

how to print star pattern in swift pro

guyswithhoodie
Автор

Hi!Thank you very much for this videos, are very helpfull.I just wanna ask you .I saw that you have 2 posts, How to make an app and this one with swift.How I should watch both.In what order, so everything can make sense?
Thanks again

cris