Learn Swift 3 for Beginners

by Chris Ching

This up to date guide will teach you the basics of the Swift programming language.

If you’ve ever tried to learn Swift, you’ll know that there are tons of outdated resources floating around the internet because Swift is in its infancy and Apple updates the language so often.

It’s a tremendous effort, but I’ve kept the following tutorials up to date and will continue to do so!

With that said, let’s dive into the lessons!

Psst! Download and print out my trusty Swift Syntax Cheat Sheet.



Lessons


Lesson 1 Variables

1. Variables
In this lesson, you’ll start at the very beginning with variables

Lesson 2 Data Types

2. Data Types
In this lesson, you’ll start at the very beginning with variables

Lesson 3 If Statements

3. If Statements
In this lesson, you’ll start at the very beginning with variables

Lesson 4 Switch Statements

4. Switch Statements
In this lesson, you’ll start at the very beginning with variables

Lesson 5 Loops

5. Loops
In this lesson, you’ll start at the very beginning with variables

Lesson 6 Loops Part 2

6. Loops Part 2
In this lesson, you’ll start at the very beginning with variables

Lesson 7 Functions

7. Functions
In this lesson, you’ll start at the very beginning with variables

Lesson 8 Functions Part 2

8. Functions Part 2
In this lesson, you’ll start at the very beginning with variables

Lesson 9 Classes

9. Classes
In this lesson, you’ll start at the very beginning with variables

Lesson 10 Inheritance

10. Classes Part 2 – Inheritance
In this lesson, you’ll start at the very beginning with variables

Lesson 11 UIKit

11. UIKit
In this lesson, you’ll start at the very beginning with variables

Lesson 12 Initializers

12. Initializers
In this lesson, you’ll start at the very beginning with variables

Lesson 13 Optionals

13. Optionals
In this lesson, you’ll start at the very beginning with variables

Lesson 14 Properties

14. Properties
In this lesson, you’ll start at the very beginning with variables

Lesson 15 Initializers Part 2

15. Initializers Part 2
In this lesson, you’ll start at the very beginning with variables

Lesson 16 Arrays

16. Arrays
In this lesson, you’ll start at the very beginning with variables

Lesson 17 Dictionaries

17. Dictionaries
In this lesson, you’ll start at the very beginning with variables



Challenges

Want to test what you’ve learned? Take a crack at the challenges below!

You may have to review some of the lessons to refresh your memory but I guarantee that completing these challenges will reinforce what you’ve learned in the lessons above.

When you complete all of the challenges, get your name on the Wall of Fame in the next section!

Instructions


Challenge #1: The Lost Animal Challenge
In this challenge, you’ll write a function that searches two arrays to find an animal.

Download the starter code for this challenge


Challenge #2: The Caterpillar Challenge
In this challenge, you’ll implement the missing function code to make this caterpillar go!

Download the starter code for this challenge


Challenge #3: The Library Challenge
In the toughest challenge of this series yet, you’ll complete the class definition to enable searching for books, checking in/out books and also checking for errors too!

Download the starter code for this challenge



Wall of Fame

Get your name and Twitter profile mentioned here!

Step 1: Complete the challenges in the Challenges section above.

Step 2: Click the card below to send out the tweet! I’ll see your tweet and I’ll add your name below and a link to your Twitter profile.

I completed all the Learn Swift challenges! Try them here: http://codewithchris.com/learn-swift @CodeWithChris #swiftlang #swiftdev #programming #codingClick To Tweet

After you complete the challenges, Click to Tweet above and pronounce your victory! I’ll add your name below:

@TheMACentral

@imranbinmajid

@sasakifujika

@acnavi1234


33 Shares
Share8
Tweet24
+1
Share1
Pin