Template · Productivity
Productivity App SwiftUI Template
Margin, a workday app: a complete Xcode project with an agenda, focus sessions, notes, insights, widgets and three brand presets. 16 screens and 4 flows in Margin, as a SwiftUI app template.
A productivity app on five tabs: Agenda with the week strip and the day's timeline, Focus with a timed session on one task, Notes with a morphing navigation pill, Insights with the week's numbers on a dashboard, and Settings. First run asks for reminders and offers Sign in with Apple before the Margin Pro paywall.
- SwiftUI
- iOS 17.0+
- Xcode project 1.0.0
- productivity-app
$199 once, every piece included. See how installing works · Sign in
01
Flows
Complete journeys through Margin, from first launch to sign out, screen by screen. Open one to play it, or choose any screen to start there.
The first 3 steps of every flow are open. Pro opens every screen of every template, live in each style, and the SwiftUI to build them.
01 · Onboarding
First Run
Three welcome pages, the reminders request, an account and Margin Pro, ending on today's agenda.
5 Screens12 Steps02 · Core Journey
Plan The Day
Add a task with its own project and time block, check off an errand, then focus on the next block and see the session logged.
5 Screens13 Steps03 · Core Journey
Notes And Insights
Search your notes, add to the review agenda, start a new note, then see the week and the month in Insights.
3 Screens9 Steps04 · Profile And Settings
Profile And Settings
Work hours, the theme, a CSV export and the upgrade to Pro, then signing out back to the welcome pages.
6 Screens10 Steps02
Screens
Every screen in Margin, 16 in all, each a SwiftUI view in the Xcode project. In Graphic, Neon and Studio, light and dark.
First run
Welcome, permissions and the questions that set the app up.
- Welcome
Three pages introduce the day's timeline, focus sessions and insights before the app asks for anything.
Built onWelcomeOnboarding
- Reminders
Margin explains its two reminders, then asks iOS for notifications or lets you skip.
Built onOnboarding
Account and subscription
Sign in, verification and the paywall.
- Sign In
Sign in with Apple to back up tasks, notes and focus history, or continue without an account.
- Margin Pro
Choose yearly with a seven-day trial or monthly to unlock projects, focus lengths, month insights and the larger widgets.
Built onPaywall
Tabs
Where the app opens, one screen per tab.
- Agenda
Today's timeline of meetings and time blocks, what is on now, and the day's tasks to check off.
- Focus
Pick a task and a length, run the timer and log the minutes to that task.
- Notes
Notes as block cards in two columns, with search and a pill that opens into filters and New note.
- Insights
The week's focused minutes by day, tasks done, sessions, the focus streak and recent activity.
Details and sheets
What the tabs push and present.
- Task Detail
A task in full: its project, priority, due date and time block, the notes and the focus spent on it.
- New Task
Write a task, file it under a project, set its priority and give it a due date and a time block.
- New Project
Name a project and pick its color from the theme's blocks.
- Note
Write a note that saves as you type, and pin it to keep it at the top.
Profile and settings
The account, preferences, the subscription and sign out.
- Settings
Your account and plan, work hours, reminders, the theme, export and sign out.
- Day Starts
Choose when the workday starts, which sets where open time begins on the Agenda.
Built onSettings
- Theme
Switch between the Graphic, Neon and Studio presets and pick light, dark or system appearance.
- Export
Share every task and focus session as a CSV file.
03
Built from the library
The library screens this template wires together, in the order someone meets them. Each one installs on its own too.
Agenda
A week strip, the day's timeline, a task's detail and the new-task editor.
Focus
A timed session on one task, logged to the task, with today's focus and streak.
Notes and insights
A notes list with the morphing pill, and a dashboard of the week's numbers.
04
What's included
SwiftUI source you own, built on Apple frameworks only.
- A week strip with a day timeline, task details and a new-task editor
- A focus timer tied to a task, logging each session to it
- A notes list with the morphing navigation pill
- An insights dashboard with a scrubbable chart and pull to refresh
05
Implementation notes
How it behaves, what it handles, and the decisions behind it.
ProductivityApp puts four screens on the App Shell. Agenda is the week strip over the selected day's timeline, with a new-event sheet. Focus runs a timed session on one task, with ambient sounds and Do Not Disturb. Notes is a notes list whose floating Morph Nav pill turns into a toolbar or a panel; it sits just above the tab bar. Insights is the Dashboard screen with a scrubbable chart and pull to refresh.
Adapting it
- Sample data: events live in
CalendarStripExample, tasks and sounds inFocusTimerExample, notes inMorphNavExampleand metrics inDashboardScreenExample.make(). The Insights sample shows business metrics; point it at your own numbers. - Tabs: reorder or drop entries in
tabs.initialTabpicks where the app opens. - Theme: set
.environment(\.spTheme, …)onProductivityAppto re-skin every themed screen.
Notes
- Not
@main: putProductivityApp()in your ownWindowGroup.
06
Keep building
Pieces that work well next to this one.