Learn SwiftUI
A free, interactive SwiftUI course. Write real SwiftUI code in every lesson, watch the screen it builds in a live phone preview, and tap it to see your state change. No Mac or Xcode needed, AI hints when you get stuck, and a free certificate when you finish.
4,075+ codders enrolled
50 lessons46 challenges106 quiz questions
- Beginner friendly
AI-assisted coding help
Hands-on interactive lessons
Audio narration on every lesson
Quizzes to test your knowledge
Free certificate of completion
Syllabus
This section is part of the Swift Journey. The full syllabus has more sections - click any preview below to view it on the Journey page.
- Section 1Fundamentals86 lessons
- Section 2Logic & Flow56 lessons
Section 3
Introduction to SwiftUI
Start sectionStartExpandCollapseBuild app screens in Swift with SwiftUI: views and modifiers, stacks and layout, state and buttons, text fields and toggles, lists, navigation and shared data. Every lesson is real SwiftUI code, previewed live.Introduction
2 lessons28Showing Content
6 lessons615Stacks & Layout
5 lessons512Modifiers
5 lessons512State & Buttons
5 lessons512User Input
5 lessons512Lists
5 lessons512Navigation
5 lessons512Sharing Data
4 lessons49Project - Coddy Coffee
Project5 lessons12Final Challenges
3 lessons3
Learn by Doing
Write real code, query databases, build websites, and master AI prompts. Our interactive lessons cover every skill modern developers need.
Build Your Streak
Stay consistent and watch your progress grow! Track your daily coding habit, protect your streak with freeze days, and earn rewards for showing up every day.
12 days streak
Return tomorrow to keep your streak!
January 2026
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
21
22
23
24
25
26
27
28
29
30
Double or Nothing
Day 5 of 7
Streak Freeze
2 left
Code Anywhere
Take your coding journey on the go! No setup, no downloads - just open and start coding. Available on iOS, Android and Web with 4.9 star ratings.
You're Not Alone
Compete on global leaderboards, invite friends to earn rewards, and celebrate each other's wins. Coding is better with friends!
Every way to learn
Read, listen, test yourself, ask the AI, or look up anything you've already covered. Every lesson meets you where you are.
A variable is a named container that stores a value you can reference later in your program.
In Python, you create one by writing the name, an equals sign, then the value you want to store.
The value can change over time - reassigning the name simply points it to a new value.
Earn a Certificate
Earn certificates for every course you complete. Add them to your LinkedIn profile and resume to showcase your coding expertise to employers.
Why learn SwiftUI with Coddy
- Build iPhone app screens in your browser. No Mac, no Xcode and no simulator to set up: your code compiles on our servers and the preview shows the screen it describes, so you can learn SwiftUI on Windows, Linux or a Chromebook.
- The SwiftUI you use on every screen: text, fonts, colors and SF Symbols, stacks, alignment and
Spacer, the modifier chain and why its order matters, buttons and@State, text fields, toggles, sliders and pickers,ForEachandList,NavigationStack, sheets and alerts, then@Bindingand observable objects to share data between views. - A live, tappable preview. Tap a button or toggle a switch in the preview and the view redraws with its new state, so you see how declarative UI works instead of reading about it. You can switch to a phone frame and save a screenshot of what you built.
- Small apps along the way, from a price tag and a weather card to a score keeper, a shopping list and a plant guide, then a multi-screen coffee ordering app as the final project and a free SwiftUI certificate when you finish the section.
Frequently asked questions about learning SwiftUI
What is SwiftUI?
body, that you combine with stacks and style with modifiers. The same code builds interfaces for iPhone, iPad, Mac, Apple Watch, Apple TV and Vision Pro.Do I need a Mac or Xcode to learn SwiftUI here?
Is the preview the same as Xcode's?
@State changes show up as they would in an app. It covers the views and modifiers in the lessons, not the whole SwiftUI framework, so treat it as a place to learn rather than a replacement for Xcode.Should I learn Swift before SwiftUI?
@State wraps a property, lists loop over arrays, and the compiler's type errors are Swift errors. This section comes right after the Fundamentals section of the Swift journey, which covers variables, types, functions, structs and optionals, so if Swift is new to you, start there.SwiftUI vs UIKit: which should I learn?
Is SwiftUI hard to learn?
@State to @Binding to observable objects one step at a time, with a small app at the end of each chapter.