Make an app

Make a sobriety counter app for iPhone

A sobriety counter does one thing: it shows how long it has been since the day you chose. Describe yours to Borel and it builds a native iPhone app in SwiftUI with the count in days, hours and minutes, milestones you name yourself, a page of your own reasons for the hard evenings, and a Face ID lock so the number stays private.

Updated

A prompt to start from
“A sobriety counter: I set the date and time I stopped, and the first screen shows the time since then in days, with hours and minutes below. Milestones at 1, 7, 30, 90 and 365 days get a badge. A Reasons page holds notes and photos I add myself. I enter what I used to spend per week and it shows the total not spent. Open with Face ID.”

Screens

What a sobriety counter app needs

The screens Borel builds from the prompt above. Ask for more, fewer or different ones.

  • Count

    The days since your date in large type, with hours and minutes ticking underneath.

  • Milestones

    Badges for the marks you set, with days to go until the next one.

  • Reasons

    Your own words and photos, kept for the evenings when the count feels far away.

  • Hard moment

    One reason picked at random, and a button that calls the person you chose.

Data

What it keeps

Borel writes these as Swift models. On the phone they work with no connection; in Borel's cloud they follow a signed-in person.

What a sobriety counter app made with Borel keeps, and where
WhatHoldsKept
StartThe date and time the count runs fromOn the phone
MilestoneDays, a name, reached or notOn the phone, with SwiftData
ReasonA note, an optional photo, the date writtenOn the phone, with SwiftData

Make it yours

What to ask for next

Once the first version runs, ask for changes in the chat, in words like these.

  • “Let me start over without deleting the old count, and keep a list of past runs.”
  • “Count a second thing separately, like days without smoking.”
  • “Send a quiet check-in at 6 pm on Fridays asking how the week went.”
  • “Hide the money figure unless I tap it.”

How to make it

From a prompt to your iPhone

  • 1

    Describe it

    Paste the prompt on this page into Borel, or write your own in plain words. Borel plans the screens with you before it builds.

  • 2

    Try it in your browser

    Borel writes the app in Swift and SwiftUI, builds it with Xcode on its own Mac and opens it in a live iPhone simulator in your browser, free.

  • 3

    Put it on your iPhone

    With Pro, Borel Companion for Windows or Mac installs it on your own iPhone with your Apple ID: a cable the first time, then Wi-Fi.

Leave the app alone on your iPhone for a day, then open it in the evening when you would normally look. See whether the number is the first thing you read, whether Face ID gets out of the way quickly, and whether the call button dials the right person. The milestone note only arrives on the real phone, so set a test milestone for tomorrow morning.

Optional next step

Publish it, if you want to

Pro publishes to the App Store from the same project. Apple's Developer Program, $99 a year, is the one thing you pay Apple.

A counter like this is usually nobody else's business, and it never has to go to the App Store: with Pro, Borel Companion installs it on your own iPhone. Should you publish one later, keep its words to what it does, a counter and a notebook, with no promises about recovery.

Building starts free, with 5 free credits a day, up to 30 a month, and the simulator in your browser costs nothing. Installs on your own iPhone through Borel Companion come with a paid plan, Pro, from $25 a month, and Pro, from $25 a month, adds publishing to the App Store.

Before you start

Good to know

  • It isn't treatment, counselling or a medical tool; it counts days and keeps the notes you write.
  • The count stays in the app until you ask for a widget, which puts it on your Home Screen.
  • It has no community, meetings list or sponsor matching; the one person it can call is the one you pick.

Frequently asked questions

Yes. Ask for a Face ID lock, and the app shows nothing until Face ID or your passcode lets you in. The count is saved only on your iPhone.

That's your rule to set. Ask Borel for a reset that keeps your earlier runs in a list, or for a count of sober days in total instead of days in a row.

Yes, as plain arithmetic: you type what you used to spend per week, and the app multiplies it by the time passed.

No. The date, milestones and reasons live on the phone, and the count is worked out from the clock.

Make your sobriety counter app

Start from the prompt on this page, change it to fit your idea, and Borel builds it while you watch.