Template · Media

New

Reading App SwiftUI Template

Dogear, a reading tracker: a complete Xcode project with the book in hand, timed reading sessions, passages kept from a photo of the page, the year's shelf against a goal, widgets and three brand presets. 15 screens and 5 flows in Dogear, as a SwiftUI app template.

A reading app on four tabs. First run shows the pile, adds your first book (or keeps the sample shelf), sets the year's goal and a daily reminder, then offers Sign in with Apple before a StoreKit 2 paywall. Reading is the book in hand with your week and streak; Start runs a timed session with a page counter and ends on a summary you save; a passage is kept by typing it or, with Dogear Plus, by photographing the page and tapping its lines, read on device with Vision. Library is the shelf by status with every highlight; Year is the goal ring and the shelf of spines; Settings holds the goal, session length, Focus, the reminder and the theme. SwiftData keeps the shelf.

  • SwiftUI
  • iOS 17.0+
  • Xcode project 1.0.0
  • reading-app
15 Screens5 Flows
Get SwiftPieces Pro

$199 once, every piece included. See how installing works · Sign in

01

Flows

Complete journeys through Dogear, 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

A welcome over a pile of covers, your first book, the year's goal and a daily reminder, then an account and Dogear Plus, landing on Reading.

7 Screens8 Steps
Play the flow
  1. 01Welcome
  2. 02Your Book
  3. 03Your Goal
  4. 04A Daily Nudge
  5. 05Allow Notifications
  6. 06Sign In
  7. 07Dogear Plus
  8. 08Reading

02 · Core Journey

Read A Session

Start a session on the book in hand, turn the pages you read, pause, and save it so the book, the week and the streak move on.

3 Screens6 Steps
Play the flow
  1. 01Reading
  2. 02Session
  3. 03Paused
  4. 04Back To Your Session
  5. 05Session Done
  6. 06Moved On

03 · Core Journey

Keep A Passage

Snap a page mid-session, tap the lines worth keeping, and find the passage on the book, in the library and on Year.

5 Screens6 Steps
Play the flow
  1. 01Session
  2. 02Reading The Page
  3. 03New Highlight
  4. 04Book
  5. 05Every Highlight
  6. 06Year

04 · Core Journey

Your Year And Shelf

From the year's ring and spines to the library and a book, sorted and reordered.

3 Screens5 Steps
Play the flow
  1. 01Year
  2. 02By Length
  3. 03Library
  4. 04Up Next
  5. 05A Book On The Pile

05 · Profile And Settings

Settings And Theme

From the Settings tab to the goal, the session length, the reminder and the themes Plus unlocks, then signing out.

4 Screens6 Steps
Play the flow
  1. 01Settings
  2. 02Reminder And Look
  3. 03Theme
  4. 04Unlock With Plus
  5. 05Sign Out
  6. 06Back To First Run

02

Screens

Every screen in Dogear, 15 in all, each a SwiftUI view in the Xcode project. In Phosphor, Riso and Velvet, light and dark.

First run

Welcome, permissions and the questions that set the app up.

  • Welcome

    A pile of covers fans out over what Dogear does, and Get started begins first run.

  • Your Book

    Add the book you're reading with its pages and the page you're on, or keep the sample shelf to look around.

  • Your Goal

    Pick how many books to read this year from five chips, or step to any number.

  • A Daily Nudge

    See the reminder as it will arrive, pick a time from four and allow notifications, or skip it.

Account and subscription

Sign in, verification and the paywall.

  • Sign In

    Sign in with Apple to back up your books, sessions and highlights, or carry on without an account.

  • Dogear Plus

    See what Plus adds, pick the yearly or monthly plan, and start the free week or restore a purchase.

Tabs

Where the app opens, one screen per tab.

  • Reading

    See the book in hand with how far in you are and the time left, start a session, and check the week and the pile.

    Built onNow Reading

  • Library

    Browse the shelf by status as covers with their progress, reorder the pile, and read every highlight.

  • Year

    See the year's books against the goal with your pace, the year in figures and the shelf of spines.

    Built onReading Year

Details and sheets

What the tabs push and present.

  • Session

    Time a session on the dial, step through the pages you read, snap a page, pause and finish.

    Built onReading Session

  • Session Done

    See the time, pages and pages an hour, then save the session, finish the book or keep reading.

  • New Highlight

    Photograph a page, tap the lines to keep, and save the passage with its page.

  • Book

    See a book's progress, pace and time left, start a session, and go through its highlights and sessions.

Profile and settings

The account, preferences, the subscription and sign out.

  • Settings

    Manage Dogear Plus, the goal, the session length, Focus, the daily reminder and the theme, and sign out.

    Built onSettings

  • Theme

    Pick Phosphor, Riso or Velvet and the appearance; Riso and Velvet come with Plus.

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.

First run

The pile, your first book (or the sample shelf), the year's goal, a daily reminder, an account with Sign in with Apple (or none) and the StoreKit 2 paywall. Runs once, then records completion.

Tabs

Reading, Library, Year and Settings on a floating bar. Reading is Now Reading; Year is the Reading Year shelf.

From the tabs

Start runs a Reading Session full screen, which resumes from a bar if you close it; books push their detail with sessions and highlights; a passage is kept from a photo of the page.

04

What's included

SwiftUI source you own, built on Apple frameworks only.

  • The book in hand with time left at your pace, the week and your streak
  • Timed sessions with a page counter that survive a relaunch
  • Passages kept from a photo of the page, read on device with Vision
  • The year's books as a shelf of spines against your goal
  • A library by status, with every highlight and sharing
  • Now Reading and Year widgets
  • Three presets: Phosphor, Riso and Velvet

Includes

Now Reading, Reading Session, Reading Year, Settings, Purchase, Paywall. Installed together, automatically.

Requires

In-App Purchase capability

05

Implementation notes

How it behaves, what it handles, and the decisions behind it.

ReadingApp is one root view. On first launch it runs Dogear's own first run: a welcome where a pile of covers fans out, the year's goal picked from five chips, then the Purchase screen's StoreKit 2 paywall. Closing, purchasing or restoring finishes onboarding and records it under a completion key, so the root switches to the home on its own.

The home has four tabs under a floating tab bar that sits inside the screen's margins: Reading, Library, Year and Settings. Reading is the Now Reading screen: the book in hand with its progress and time left, your week and streak, and the pile up next. Start session opens the Reading Session screen full screen with the page you're on; finishing it moves the book to the page you ended on and grows today's bar, and on the last page the book joins the year's shelf and the next one comes into hand. Library shows every book as a cover. Year is the Reading Year screen: the goal ring with your pace, the year in figures and the shelf of spines. Settings holds the goal, the session length and the daily reminder, with sign out back to first run.

Adapting it

  • Products: pass your App Store Connect ids as productIDs. Until they exist, the paywall shows its designed "plans didn't load" state and its close button still finishes onboarding.
  • Your shelf: the books come from NowReadingSample and ReadingYearSample. Keep yours in ReadingAppModel (or SwiftData) and record each session in ReadingAppModel.finish.
  • Theme: everything follows the theme you set on ReadingApp. Without a brand it wears Dogear Phosphor; SPBrandTheme(.dogearRiso) or .dogearVelvet re-skin every tab, including the covers' art, the spines and the dial.

The Xcode project

The download is a complete project on Tuist: a first run that adds your first book (or keeps the sample shelf), sets the goal and a daily reading reminder and offers an account with Sign in with Apple or none, right before the paywall; SwiftData books, sessions and highlights behind a repository protocol; pace, time left and streaks worked out from your own sessions; a session that keeps running while you browse, with a bar to go back to it, and a summary you save or use to finish the book; passages kept by typing them or, with Dogear Plus, by photographing the page and tapping its lines, read on device with Vision; a library by status with a reorderable pile, every highlight and sharing; a book page with its sessions and highlights and an editor; Focus to keep the screen awake while you read; the Riso and Velvet themes with Dogear Plus; Now Reading and Year widgets with dogear:// links; three presets; unit tests for the reading math and the store, and first-run and settings UI tests.

Notes

  • Not @main: put ReadingApp() in your own WindowGroup.
  • Enable the In-App Purchase capability before testing purchases. Photographing a page needs NSCameraUsageDescription, and choosing one from Photos NSPhotoLibraryUsageDescription.
  • Text recognition runs on device with Vision, so no page leaves the iPhone.
  • Previews ship with the file: first run, home, and home in each Dogear preset.