Ramesh Inampudi

Tools

Building DailyPlanner: A SwiftUI Planner for iPhone and iPad

By Ramesh Inampudi · 2026-02-01 · 4 min read

Most planner apps I tried either did too little or buried the day under menus. I wanted one screen that held the things I actually look at while planning: tasks, the top few priorities, an hour-by-hour schedule, habits and mood. So I built DailyPlanner, a SwiftUI app for iPhone and iPad, in January 2026. This article walks through what it does and the technical choices behind it, several of which are reusable in other small apps.

Why I built it

I plan on paper when I can, but paper does not remind me of anything, and it is hard to search or carry across devices. I wanted something that kept the single-page feel of a paper planner while adding the parts a phone can do well: reminders, quick date navigation and saved history. I also wanted full control over my data, with no account and no server to maintain. That last requirement shaped most of the architecture.

What it does

Everything for a day lives on one screen:

There are also hourly local notifications from 10 AM to 11 PM on weekdays only (Monday to Friday), which show up on a paired Apple Watch. The app targets iOS 17.0 and later and is written in Swift 5.9.

How it works

Layers

The code is split into three layers. The UI layer is a set of SwiftUI views: a ContentView container hosting HeaderView, TaskListView, PriorityListView, HourlyScheduleView, HabitTrackerView, MoodTrackerView, MiniCalendarView, MonthTabsView and a drawing canvas. The state layer is a single PlannerStore that holds a DayPlan model, which in turn contains task, priority and hourly-slot models. The services layer has DataStorageService for file I/O, NotificationService for reminders and a GoogleCalendarService for OAuth2 and Google API access.

The pattern is MVVM with ObservableObject and Combine. The store is shared through EnvironmentObject, so each section view reads and writes the same state without passing it down by hand. The practical benefit is that a view like the habit tracker has no idea how data is saved; it only mutates the store.

One JSON file per day

Persistence is plain JSON, one file per day, at Documents/DailyPlanner/yyyy-MM-dd.json. Dates are encoded as ISO8601 and the JSON is pretty-printed, so the files are readable and diff-friendly. Writes are atomic and use file protection, which means a crash mid-save cannot leave a half-written file behind.

I chose this over a database for three reasons. A day is a natural unit of data, so there is no query I need that a filename lookup cannot answer. The files are human-readable, which makes debugging trivial. And they are easy to move between devices.

Export, import and manual sync

Because the data is just files, sync is manual. Export shares the whole planner folder through the share sheet (AirDrop, Mail or Files), and import accepts either a folder or individual JSON files. That is how I move data between my iPhone and iPad. The share sheet is wrapped with UIViewControllerRepresentable, the standard bridge for UIKit controllers that SwiftUI does not provide natively.

One codebase, two screens

The same views serve both devices, with adjustments by device type. On iPad, fonts scale by 1.76x for readability on the larger display. On iPhone, fonts are smaller, tapping outside a field dismisses the keyboard and a Done button is provided. The UI is designed natively for dark mode.

What I learned

Building and installing

The project needs Xcode 15 or later and an iOS 17 device. You open the Xcode project, set your development team, then build with xcodebuild using your device ID and install with xcrun devicectl. The repository also includes a build_ipa.sh script and an ExportOptions.plist for producing an IPA. Deploying to a device requires an Apple Developer account.

Conclusion

DailyPlanner is a small app built around one idea: the whole day on one screen, stored in files I own. The choices that made it work were simple ones: a shared observable store, one JSON file per day, atomic writes and export-based sync. If you are building a personal productivity app, I would start the same way and add complexity only when the files stop being enough.