project habittracker

HabitTracker

System Text-to-Speech Ready
Slide: 0:00 / 0:00
Slide 1 of 0Interactive Deck

Full Lesson Reference

An iOS app to build daily habits and track streaks.

Platform note: This project requires macOS, Xcode, and an iPhone. Windows users: check out the web projects (LinkPreview, Weather, Portfolio, Playground) for cross-platform alternatives.

What You're Building

A simple iPhone app that:

  • Lets you create habits to track
  • Check off habits each day
  • Shows your current streak for each habit
  • Persists data between app launches

By the end, you'll have a real app on your phone.

Why This Project

Habit tracking is one of the most popular app categories — and one of the simplest to build. This project teaches:

  • SwiftUI (Apple's modern UI framework)
  • iOS app structure
  • Data persistence
  • Running on a real device

Same workflow as ColorDrop and Weather. Different platform.

Before You Start

Make sure you have:

  • Xcode installed (from the App Store)
  • An iPhone with iOS 17+
  • Same Apple ID signed in on Mac and iPhone
  • Claude Code running

You don't need an Apple Developer account to run on your own device.

The Steps

  1. Starting — Create the Xcode project
  2. Habit List — Display and add habits
  3. Check Off — Mark habits complete each day
  4. Streaks — Calculate and display streaks
  5. Persistence — Save data between launches
  6. Your Phone — Run it on your device
  7. Next — Where to go from here

Start Building

Step 1: Starting →

Exercises

  1. Confirm your setup: open the App Store and verify Xcode is installed, then check that the same Apple ID is signed in on both your Mac and iPhone.
  2. Write a one-sentence description of how you'd use a habit tracker — which 3 habits would you actually track? You'll add these in Step 2.
  3. Skim the seven steps above and note which one you expect to be hardest. Revisit that prediction when you finish the project.