Swift for iOS Application Development
From your first line of Swift to an app on the App Store.
Swift is the language Apple built to replace Objective-C, and SwiftUI is the framework it built to replace everything you used to write by hand to put a button on a screen. Together they are how an iOS application is written today: a few hundred lines of Swift can produce something that looks and behaves like software Apple shipped itself, because the defaults were designed by the same people who wrote the Human Interface Guidelines.
Overview
Nothing here is held back. Every lesson is free to read in full, and the code samples are written to be typed into Xcode rather than admired. By the end you will have written a complete application: one that fetches data from a real API, stores it on the device, survives being rotated and backgrounded, has tests that run in a pipeline, and is signed and uploaded.
Introduction
You do not need to have written Swift before, and you do not need to have shipped a mobile app before. You do need to be comfortable with the idea of a variable, a function and a loop in some language - this course explains how Swift does those things, not what they are. If you have written JavaScript, Python, Java or Kotlin, you already have everything you need.
An Apple Developer Program membership costs money and is only required for the last phase, when you distribute a build. Everything up to that point - including running your app on your own iPhone - works with a free Apple ID.
What you will be able to do
- Write Swift that reads the way Swift is meant to read, using optionals and value types rather than working around them
- Build a complete multi-screen interface in SwiftUI, with state that flows in one direction
- Fetch and decode JSON from a REST API without blocking the interface
- Store data on the device, from a single user preference to a relational model
- Structure an app so its business logic can be tested without launching a simulator
- Integrate device features such as location, maps, notifications and on-device machine learning
- Sign, upload and submit a build through TestFlight and App Store Connect
What each level covers
4 levels · 20 lessons
-
Level 1 - Swift Programming Fundamentals
The language itself, before any user interface - so that later, when something breaks, you know whether it is the code or the screen.
6 lessons 13 min of reading
Start with Development Environment Setup → -
Level 2 - Building Interfaces with SwiftUI
Declarative layout, styling, state and navigation - the phase where the app becomes something you can look at.
5 lessons 10 min of reading
Start with Views and Layout Containers → -
Level 3 - Data, Networking and Persistence
Talking to a server without freezing the interface, and keeping what you fetched when the app closes.
4 lessons 8 min of reading
Start with Networking and APIs → -
Level 4 - Architecture, Testing and Deployment
Structuring an app so it can be worked on by a team, tested without a simulator, and shipped.
5 lessons 11 min of reading
Start with App Architecture Patterns →
Guides and articles
Longer reading about this subject, written alongside the course.
-
A struct is copied, a class is shared, and SwiftUI is built on the difference
The distinction between value types and reference types is the first thing Swift teaches and the last thing most people understand. It explains a whole category of bug, and it explains why every SwiftUI view you will ever write is a struct.
· 10 min read
Before you start
- A Mac running a current version of macOS
- Xcode, free from the Mac App Store
- About 40 GB of free disk space for Xcode and its simulators
- An Apple ID - free, for running on your own device
- An Apple Developer Program membership, for the final phase only
Common questions
- What does the Swift for iOS Application Development course cover?
- It is 4 levels and 20 lessons: Level 1 - Swift Programming Fundamentals; Level 2 - Building Interfaces with SwiftUI; Level 3 - Data, Networking and Persistence; Level 4 - Architecture, Testing and Deployment. Each level ends with a quiz, and the last one is an exam over the whole course.
- How long does it take?
- About 42 minutes of reading and exercises - roughly 0.7 hours. It is self-paced with no cohort and no start date, so you can leave and come back and the site remembers where you were.
- What do I need to know first?
- A Mac running a current version of macOS. Xcode, free from the Mac App Store. About 40 GB of free disk space for Xcode and its simulators. An Apple ID - free, for running on your own device. An Apple Developer Program membership, for the final phase only.
- Is it free?
- Yes. Every lesson, example and quiz in this course is free to read, and you do not need an account to read them. Signing in only adds progress tracking and quiz results.
- What will I be able to do afterwards?
- Write Swift that reads the way Swift is meant to read, using optionals and value types rather than working around them. Build a complete multi-screen interface in SwiftUI, with state that flows in one direction. Fetch and decode JSON from a REST API without blocking the interface. Store data on the device, from a single user preference to a relational model. Structure an app so its business logic can be tested without launching a simulator. Integrate device features such as location, maps, notifications and on-device machine learning. Sign, upload and submit a build through TestFlight and App Store Connect.