Swift Project Ideas: 7 Beginner Projects to Build
5 min read

Learning Swift syntax and finishing an app are different skills. Courses and videos build the first one; only building projects builds the second. Below are 7 projects, ordered from easy to hard. Each one is chosen to push on a specific part of Swift and SwiftUI, so the list doubles as a lesson order.
You can also use Apple's own starter material: the Develop in Swift tutorials walk you through projects in Xcode step by step. The ideas here work as the second step, the one you do on your own.
Before You Start
- A Mac and the free Xcode are enough. You don't need a paid developer account to run on the simulator.
- Create each project with iOS > App and SwiftUI as the interface. If this is your first time, follow the steps in the first SwiftUI app guide.
- Don't start a new project before finishing the current one. "Finished" means: it works, it doesn't crash, and it comes back in the state you expect after you close and reopen it.
1. Tip and Bill Splitter (Easy)
Enter an amount, pick a tip percentage and the number of people, show what each person pays.
Teaches: @State, number input with TextField, Picker or Slider, computed properties (var perPerson: Double { ... }).
It looks small, but safely turning typed text into a number is the first real obstacle. Double(text) returns an optional, which is where the Optionals and guard let guide comes in.
2. To-Do List (Easy)
Add, complete and delete tasks.
Teaches: List, ForEach, onDelete, Identifiable, array operations. The first app guide covers it step by step; make your version your own with categories or due dates.
3. Habit Tracker (Medium)
Habits you check off each day, with a streak count. It's a commonly suggested beginner project because it needs real model design with few screens.
Teaches: modeling with struct (struct vs class), Codable, comparing days with Calendar, shared state with @Observable (State, Binding and Observable).
The skeleton below works on iOS 17 and later. The key detail is normalizing the day with startOfDay; otherwise checking the same day at two different times counts as two records.
import SwiftUI
import Observation
struct Habit: Identifiable, Codable {
var id = UUID()
var title: String
var doneDays: Set<Date> = []
func isDone(on day: Date, calendar: Calendar = .current) -> Bool {
doneDays.contains(calendar.startOfDay(for: day))
}
mutating func toggle(on day: Date, calendar: Calendar = .current) {
let key = calendar.startOfDay(for: day)
if doneDays.contains(key) {
doneDays.remove(key)
} else {
doneDays.insert(key)
}
}
}
@Observable
final class HabitStore {
var habits: [Habit] = []
}
struct HabitListView: View {
@State private var store = HabitStore()
@State private var newTitle = ""
var body: some View {
NavigationStack {
List {
ForEach($store.habits) { $habit in
Button {
habit.toggle(on: .now)
} label: {
Label(
habit.title,
systemImage: habit.isDone(on: .now) ? "checkmark.circle.fill" : "circle"
)
}
}
.onDelete { store.habits.remove(atOffsets: $0) }
TextField("New habit", text: $newTitle)
.onSubmit {
let title = newTitle.trimmingCharacters(in: .whitespaces)
guard !title.isEmpty else { return }
store.habits.append(Habit(title: title))
newTitle = ""
}
}
.navigationTitle("Habits")
}
}
}Next steps: save the list to a file with JSONEncoder (or to UserDefaults) and restore it on launch, then add the streak calculation.
4. Recipe or Notes App (Medium)
A list screen, a detail screen, and search.
Teaches: NavigationStack and NavigationLink, .searchable, passing data between screens, empty states and delete confirmation. Hardcode the data at first, then move it to a file.
5. An App That Fetches API Data (Medium)
Weather, exchange rates, or any public JSON service. One screen that loads a list is enough.
Teaches: async/await with URLSession, decoding JSON with Codable, and handling three states: loading, failed, loaded. It's the most natural way to put the async/await and concurrency guide into practice.
Your screen must show two things: what the user sees before data arrives, and the error message when the network drops. Most beginner projects only run the happy path; adding these two makes a project noticeably more mature.
6. Flash Cards or Quiz App (Medium)
Show a question, pick an answer, keep score, show a result screen.
Teaches: a state machine with enum (question, answered, finished), Equatable, animation (withAnimation), and storing a high score with @AppStorage.
7. Expense Tracker: Persistence and Charts (Hard)
Add expenses, list them by category, show a monthly summary in a chart.
Teaches: persistence with SwiftData, charts with Swift Charts, queries with @Query, date range filters. Their minimum OS versions differ (SwiftData iOS 17, Charts iOS 16), so choose your deployment target deliberately at the start.
What Order to Follow
| Stage | Project | Main topic |
|---|---|---|
| 1 | Tip calculator | @State, input, optionals |
| 2 | To-do list | List, Identifiable |
| 3 | Habit tracker | Models, Codable, @Observable |
| 4 | Recipe / notes | Navigation, search |
| 5 | API app | async/await, error states |
| 6 | Quiz | enum, animation |
| 7 | Expense tracker | SwiftData, Charts |
Each stage should teach you something new. Moving up a level beats building a second to-do list that repeats the same lesson.
Turning a Project into a Portfolio Piece
- Put it on GitHub. In the README, explain what the app does, which concepts you used, and add two or three screenshots.
- Add a feature of your own. A project that solves your own problem is worth more than a tutorial copy that everyone has built.
- When you're ready to publish, the App Store publishing guide covers the process; you need a paid Apple Developer Program membership for it.
FAQ
Which Swift project should I build first?
The tip calculator or a to-do list. Both are single-screen, teach the basics of state, and can be finished in a day.
Should I learn UIKit or SwiftUI?
If you're starting from zero, SwiftUI is the sensible choice, and Apple's current beginner tutorials use it. Learn UIKit later if an existing codebase or job requires it.
Do I need a paid Apple account for these projects?
Not for the simulator. You can also install on your own iPhone with a free Apple account for a limited time; submitting to the App Store requires the paid membership.
How many projects should I build?
The count doesn't matter. Truly finishing three or four teaches far more than leaving ten half done.
Source
Related Posts
SwiftUI First App: A Step-by-Step Guide for Beginners
Build your first SwiftUI app from an empty Xcode project to the simulator: App, View, VStack, @State, List and TextField in a working to-do list.
SwiftUI @State, @Binding and @Observable: Data Flow Guide
When to use @State, @Binding, @Observable, @Bindable and @Environment in SwiftUI, how they map to ObservableObject, with a decision table and common bugs.
Swift Closures Explained: $0, @escaping and [weak self]
Learn Swift closure syntax step by step from the full form to $0 shorthand: trailing closures, capturing values, @escaping, retain cycles and [weak self].