Swift Tutorial

Learn Swift and start building iOS and macOS applications. This mini-course covers the fundamentals you need to get started with Apple's modern programming language.

Learn Swift from scratch: variables, optionals, collections, structs, classes and protocols, then generics, error handling, async/await and Codable.

New to Swift? No experience needed.

Start with Lesson 1 — Introduction to Swift. We'll guide you through everything from scratch, step by step.

Continue where you left off

Lessons in this course

Frequently asked questions

What is Swift used for?

Swift is Apple's language for building iOS, iPadOS, macOS, watchOS and tvOS apps. If you want to create apps for the iPhone or Mac, Swift is the language to learn.

Is Swift good for beginners?

Swift was designed to be safe, modern and readable, which makes it beginner-friendly. This course covers variables, control flow, functions, OOP and the basics of building user interfaces.

Do I need a Mac to learn Swift?

To build and ship iOS apps you'll eventually want a Mac with Xcode, but you can learn the Swift language fundamentals and practice the concepts in this course without one.