Earn Your Scroll

A native iOS app that turns focus sessions into access time for selected apps.

Swift · SwiftUI · DeviceActivity

An iPhone app’s daily loop

I brought focus sessions, credit, history and temporary access together in a native iPhone app. Users choose the apps they want to earn time for. Interrupted sessions earn nothing. I implemented Screen Time integration, a Pro screen and purchase restoration, and exercised the timer and balance rules in the simulator.

What I built

Focus sessions

Completed focus sessions earn access credit. Interrupted sessions do not add to the balance.

Balance and history

Earned time, used access and session history are tracked within the app, with data stored on the device.

Screen Time integration

App selection and timed access use Family Controls, Managed Settings and Device Activity.

Pro and purchases

I developed custom focus durations, expanded history, StoreKit purchases and restoration flows.

How it works

  1. Focus
  2. Complete the session
  3. Earn time
  4. Use access
  5. Review history

Key decisions

Only completed work earns the reward

The core rule is simple: twenty-five minutes of focus earns five minutes of access, with no reward for an interrupted session. Timer, balance and history follow that rule. Returning to the app requires more than displaying the remaining time; the balance must stay consistent. Completing focus and spending access are handled as distinct operations.

Separating simulation from device behaviour

The interface, timer and balance flows were exercised in the simulator. Actual restrictions on other apps still require a physical iPhone with the appropriate Screen Time permissions. I also added StoreKit purchase and restoration flows for Pro. At this stage the app is a development build, not an App Store release.

Outcome

A 25-minute focus session earns five minutes of access. The timer works in the simulator; app shielding requires an authorised iPhone installation.

Have something in mind?

A project, a collaboration, or a conversation.

WhatsApp