Screen · Media
Reading Session SwiftUI Screen
A timed reading session: a dial that fills toward your session length, a big clock, a page counter and pause, stop and snap.
A full-screen reading session around a sixty-tick dial that fills toward the session you set, with the elapsed time large in the middle. The book and chapter sit above it, a page card below counts the pages you read with steppers (adjustable for VoiceOver), and the controls snap a page, pause and finish. `ReadingSessionClock` is a pure, Codable clock with pause and resume, so a session survives the app closing.
- SwiftUI
- iOS 17.0+
- reading-session
$199 once, every piece included. See how installing works · Sign in
01
What's included
SwiftUI source you own, built on Apple frameworks only.
- A sixty-tick dial that fills toward your session length
- The elapsed time large, ticking every second
- A page card you step through, adjustable for VoiceOver
- Pause, finish and snap a page from the controls
- A Codable
ReadingSessionClockthat survives a relaunch
Used in
Reading App (template)
02
Implementation notes
How it behaves, what it handles, and the decisions behind it.
A back button and a Focus chip sit at the top, then the book's small cover with its title and chapter. The middle of the screen is a dial of sixty ticks that light up in the accent as the session runs toward its length, with the elapsed time set large inside it and "of a 60 min session" under it. Each lit tick plays a light haptic. Below the dial a page card shows the page you're on and how many pages this session, with minus and plus to step through them. The controls along the bottom snap a page with the camera, pause and finish. Pausing dims the ticks and pulses the time, and reading on past the session's length is fine: the dial stays full, the line under the clock says "past your 60 min session" and the clock keeps going. Every page you turn plays a selection haptic and pausing a firmer one.
Notes
ReadingSession(book:goalMinutes:startPage:page:clock:focus:onSnap:onFinish:onClose:)binds the page and the clock, so your store owns both. Leavefocusnil to hide the Focus chip; what Focus does (keep the screen awake, hide notifications) is up to your app.ReadingSessionClockis plain values: when the session started, when the current pause began and the time already paused.elapsed(at:)reads it at any moment, so the clock is right after a trip to the background, and it isCodable, so you can store it and resume a session after the app is closed.clockText(_:)formats "24:18" or "1:02:05".- The dial redraws once a second in a
TimelineView, so nothing runs while the screen is gone. - VoiceOver reads the time in words, and the page card is adjustable: swipe up or down to turn pages. Pause, finish and snap are labelled buttons. Under Reduce Motion the paused time stops pulsing.
ReadingSessionExampleat the end ofReadingSession.swiftis the screen in the preview: twenty-four minutes into an hour with The Salt Orchard, eleven pages in, in the Phosphor showcase preset. Copy it as a starting point.
03
Keep building
Pieces that work well next to this one.









