Swift

Free

Learn Swift on your iPhone

Learn Swift with 40 short lessons and 200 exercises. Each lesson explains the idea, shows you an example and gets you practicing, with an AI tutor that gives hints when you get stuck.

lessons
40
exercises
200
Beginner
10
Intermediate
15
Advanced
15
Syntax, the 3D SyntaxQuest mascot

What is Swift used for?

Swift is Apple’s language for building iPhone, iPad, Mac and Apple Watch apps. It is modern, safe and fast, and it is the starting point if you want to ship your own app on the App Store.

How the course starts

  1. 01

    Hello Swift

    Learn print(), comments, and what your first Swift program looks like.

  2. 02

    Variables and Constants

    Master let, var, type annotation, and type inference.

  3. 03

    Data Types

    Use Int, Double, Bool, String, Character, and type conversions.

  4. 04

    Operators

    Practice arithmetic, comparison, logical operators, and ranges.

  5. 05

    Strings and Interpolation

    Work with interpolation, count, uppercased(), contains(), and multiline text.

  6. +35 more lessons in the app

    The full syllabus, the explanations and the practice are in the app.

Swift course syllabus

Beginner 10 lessons

  1. Hello Swift
  2. Variables and Constants
  3. Data Types
  4. Operators
  5. Strings and Interpolation
  6. Conditionals
  7. Switch
  8. For-in and Ranges
  9. While and Repeat-While
  10. Guard

Intermediate 15 lessons

  1. Arrays
  2. Dictionaries and Sets
  3. Functions
  4. Closures
  5. Higher-Order Functions
  6. Optionals
  7. Advanced Optionals
  8. Structs
  9. Classes
  10. Enums
  11. Protocols
  12. Extensions
  13. Generics
  14. Advanced Closures
  15. Design Patterns

Advanced 15 lessons

  1. Async/Await
  2. Tasks
  3. Actors
  4. Async Error Handling
  5. DispatchQueue Legacy
  6. Views and Modifiers
  7. State and Binding
  8. @Observable and MVVM
  9. Navigation
  10. Lists and ForEach
  11. Combine Fundamentals
  12. Combine Operators
  13. Combine + SwiftUI
  14. XCTest Basics
  15. Async and UI Testing

A question from the course

Variables and Constants

Complete the code to declare a mutable variable:

___ age = 18

The answer, the explanation and many more exercises are waiting for you in the app.

Download

Questions about the course

Is the Swift course free?

Yes. Swift is one of SyntaxQuest's free courses: download the app and start without paying.

Do I need experience to learn Swift?

No. The course starts at beginner level (10 lessons) and moves on to intermediate and advanced at your pace.

How long is the Swift course?

It has 40 lessons and 200 exercises. Lessons are short, so you can move forward a few minutes a day; adaptive learning brings back what you are about to forget.