Topics
Published on October 26, 2017 by CodeWithChris

In the last lesson you learned about variables, constants and data types.

You also learned how to write print statements and simple Swift code statements to assign data to variables/constants.

In this video, you’ll build from there and learn how to organize that Swift code into blocks of code called Functions.

You can download the Cheatsheet and Worksheet from here:

How to Make an App for Beginners (Lesson 6)

More on Functions #1 (Video)

More on Functions #2 (Video)

Apple documentation on Swift Functions
developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Functions.html#//apple_ref/doc/uid/TP40014097-CH10-ID158

Learn how to make an app even if you have no programming experience!

This is a 10 part video series designed for beginners in mind to teach the fundamental skills for making apps on iOS.

This video series uses the latest and greatest from Apple (Xcode 9, Swift 4, iOS 11) and will teach a beginner with no programming experience how to make iPhone apps. I’m creating these videos with the assumption that the student has no prior knowledge and is starting from scratch.

The lesson plan for the How To Make an App series can be found on my site here:

How To Make An App (for beginners) – Start Here

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

Website: codewithchris.com
Twitter: twitter.com/CodeWithChris

CodeWithChris is dedicated to teaching beginners and non-programmers all about how to make an app. 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:

68 Beginners Share Their Success Stories

Leave a Reply

67 Comments on "How to Make an App for Beginners – Lesson 6 (Learn Swift Basics 2)"

Notify of
avatar

Eric Braverman
Guest
Eric Braverman
5 days 10 hours ago

These are great tutorials, thank you very much!

Julio Lacayo
Guest
Julio Lacayo
12 days 11 hours ago

Chris you are hands on, you teach step by step, really easy to understand…you are a Rock Star, thank you!!Looking forward to get some practice…

sunil jalandhra
Guest
sunil jalandhra
13 days 33 minutes ago

how to declare int in function Chris

Ruben Ringeling
Guest
Ruben Ringeling
17 days 10 hours ago

Hi Chris nice videos! I was fully into the lessons until my xcode stoped working… I can do anything except playground 🙁 I am trying to fix it now.

Zac Vaughn
Guest
Zac Vaughn
1 month 7 days ago

Hey Chris. So I have been enjoying this program of yours for the last couple of days. Just finished lesson 6 and started the worksheet, and I gotta say this is the first lesson where I actually felt lost. I was doing okay up until this lesson. On example 2 of the worksheet, how did you come up with the number 60 in the line of code? I see you mentioned 1.13 in the assignment but I wouldn't have gotten the correct answer if I had not looked at your worksheet answers….

Zac Vaughn
Guest
Zac Vaughn
1 month 6 days ago

Never mind! i figured it out! repetition is key! i figured out that 60 was just a random number you picked. i'm getting the hang of it! On to lesson 7!

groupentity
Guest
groupentity
1 month 14 days ago
// I am brand new to coding. And Instead of overwriting each example, I wrote all of your code examples from lesson 6 in succession, so that I could follow the progression. But I found that xcode didn't like that idea very much.// For instance, when I write this code:func sayHelloTo(name:String) { print(name) }sayHelloTo(name: "Tom")// And then proceed with the following, I get an Invalid redeclaration error, and a Playground execution failure.func sayHelloTo(name:String) { print("Hello (name)") }sayHelloTo(name: "Tom")// I was able to resolve these errors by numbering the subsequent argument labels as follows.func sayHelloTo(name2:String, age:Int) { print("Hello (name2), you're (age)… Read more »
C D
Guest
C D
2 months 11 hours ago

Yoooo you are a blessing with your videos I realized what I was born to do. Can you make a video about tips and all the need to knows about importing our app to App Store?

Luise Müllermilch
Guest
Luise Müllermilch
2 months 3 days ago

Is there a way to create an event like if i hit my power botton 3 times start this… Any help and suggestions are appreciated

world braiddat
Guest
world braiddat
3 months 2 days ago
Everything great just you miss something and I have some notes for you 1-be normal when you talk 2- do just keep talking keep talking I think its good to be normal when you talk "breath" so when you talk we now you human 3- its ok if the videos take long time if you don't cut it but trust me talk normal and breath when you talking so the people who listen for this video will be more comfortable to follow what you saying …this my opinion be normal and simple people will like what you give .. all… Read more »
MrPenguini
Guest
MrPenguini
3 months 11 days ago

Hey Chris, for some reason my Xcode does not print anything out even after doing the steps repeateadly. ANy solutions

1 2 3 5
wpDiscuz