How to Make a Step Counter App for iPhone, No Code (2026)

Make a step counter app for iPhone without code: steps from the iPhone's own sensors, goals, streaks, charts and reminders, and what it can't read.

By Sigsten Gustavii· · 8 min read

To make a step counter app, read today's steps from the iPhone's pedometer with Apple's Core Motion, ask for the Motion & Fitness permission with a clear reason, save each day's total so history survives past seven days, add a goal and a streak, and test on a real iPhone because simulators have no motion sensors. With Borel, you describe the app and it writes the Swift.

What a step counter can and can't read on iPhone
DataAvailable?Where it comes from
Today's stepsYesThe iPhone's pedometer, through Core Motion
Steps for each of the last 7 daysYesCore Motion keeps seven days
Older historyOnly what the app savedDaily totals stored by the app
Walking distanceYes, estimatedCore Motion's pedometer
Apple Watch steps and workoutsNot in a Borel appApple Health, which Borel apps don't read
Heart rate, sleepNot in a Borel appApple Health

Every iPhone already counts steps, so a step counter app isn't about counting; it is about motivation. A goal that fits, a streak worth keeping, a chart of the week and a nudge in the evening turn a number into a habit. Those are exactly the parts you design, and the part Borel builds.

How iPhone step counting works

The iPhone's motion coprocessor counts steps all day with little battery cost, whether or not any app is open. An app reads those counts through Core Motion's CMPedometer: today's total the moment it opens, live updates while it is on screen, and totals for each of the last seven days. After seven days, iOS drops the data, so an app that wants a month or a year of history saves each day's total itself, on the phone with SwiftData. Open the app at least once a week and nothing is lost.

How accurate is it? The pedometer reads the same motion coprocessor the iPhone uses for its own step counts, so the numbers are close to what people already see on their phone. It counts steps while the phone is carried, which means a phone left on a desk or in a bag on a chair misses steps, and a bumpy bus ride can add a few. For a daily walking goal, those small errors don't change the habit you are building.

Apple Health: what this app won't do

Be clear about this up front. Borel apps don't connect to Apple Health, so they can't read: no Apple Watch steps, no workouts, no heart rate, no sleep. The steps come from the iPhone in someone's pocket. For most walking goals that is plenty; for people who leave their phone on the desk and wear a watch, it will undercount. Say so in the app's description.

Features that keep people walking

Step counter features and what they do for motivation
FeatureWhat it doesHow Borel builds it
Daily goalA target that fills up during the dayA ring or bar from today's steps
StreakDays in a row the goal was metWorked out from saved daily totals
Week chartEach day's steps side by sideSwift Charts
Evening nudge"1,800 steps to go" at 19:00A reminder scheduled on the phone
Goal reachedA celebration when the goal fillsAnimation and a haptic
Monthly viewCalendar of goal daysFrom saved daily totals

See charts, reminders and haptics for each piece. One detail on the evening nudge: a reminder is scheduled in advance on the phone, so its text can't know the exact steps at 19:00. Write it as "Time for an evening walk?" and show the exact number when the app opens.

Choosing a goal that works

Goals are where step apps succeed or fail. A fixed number for everyone discourages people who are far below it and bores people far above it. Better patterns:

  1. Start from their own week. Set the goal a little above their average of the last seven days.
  2. Let them choose, with a few presets and a custom number.
  3. Raise it gently after a run of good weeks, and say why.
  4. Allow rest days without breaking the streak, if they want them.

Avoid health claims. Apple's Guideline 1.4.1 gives extra scrutiny to apps that could give inaccurate health information; a step app that motivates walking is fine, one that promises medical outcomes is not.

Design a home screen people check daily

  1. One big number: today's steps, readable at arm's length.
  2. Progress toward the goal as a ring or bar that fills, with the steps still to go.
  3. Yesterday and the week in small type below, for context.
  4. The streak, with the number of days, so it feels worth protecting.
  5. Nothing else on the opening screen. Settings, history and challenges live one tap away.

Large text and dark mode follow the iPhone's settings in a native SwiftUI app, which matters for an app people glance at outdoors and at night.

Permission and privacy

Reading steps needs one permission, Motion & Fitness, which iOS asks for once with a sentence the app provides, such as "Count your steps to track your daily walking goal." Borel writes it for your app. Steps are personal data, so keep them on the phone unless someone chooses to share, for example in a walking challenge with friends. Apple's rules for health-related data (Guideline 5.1.3) are stricter still about sharing; don't send step data to third parties for advertising.

Challenges with friends

A shared challenge ("most steps this week") is the one feature that needs the cloud. Each person's daily totals go to a group in Borel Cloud that friends join with an invite code, and only the group's members see the leaderboard. Ask each person before their numbers are shared, and keep the personal app working offline without it.

Testing a step counter

The iOS Simulator has no motion sensors, so in Borel's simulator in your browser a Borel step app says so on screen instead of showing zero. Build the screens there, then install the app on your iPhone with Borel Companion, which comes with Pro, and walk. Check the count against the iPhone's own, test the evening reminder and the streak over a few days.

If you want to log workouts rather than count steps, read how to make a workout tracker app, and for a gentle daily nudge, a water reminder app uses the same kind of reminders.

How to choose the right way to build a step counter

  • Borel, for a native step counter from the iPhone's own sensors with goals, streaks, charts and reminders, built from a sentence.
  • Swift by hand with Apple's health framework, if you need Apple Watch steps and Apple Health data, which Borel apps don't read.
  • A cross-platform builder, if you need Android too; step access works differently there.

How to do it with Borel, step by step

Step 1: Describe the app

A prompt to start from
Make a step counter. The home screen shows today's steps filling a ring toward my goal, with the distance walked. Suggest a goal a little above my average of the last 7 days, and let me change it. Save each day's total on the phone so I keep more than a week of history. Show a streak of days I reached the goal and a bar chart of this week. Remind me at 19:00 to take an evening walk. Celebrate with a haptic when I reach the goal. Explain the Motion & Fitness permission in one friendly sentence.

You can also choose Motion sensors from Device in the chat's + menu. Rivet writes it with Core Motion, SwiftData and Swift Charts.

Step 2: Build the screens in the simulator

Check the layout, the goal picker and the chart on the live iPhone in your browser.

Step 3: Walk with it

Install it on your iPhone with Companion (Pro) and use it for a week. Adjust in plain words.

Step 4: Keep it or publish it

Keep it on your own phone, or publish it under your Apple Developer account. More on motion and steps.

The Bottom Line

The iPhone already counts the steps; a good step app makes them matter, with a goal that fits, a streak, a week chart and a nudge. Borel builds that natively from the phone's own pedometer, keeps daily totals beyond iOS's seven days, and is honest that it doesn't read Apple Health or a watch. Describe yours on Borel and take it for a walk.

Questions people ask

How does an iPhone app count steps?

It reads the iPhone's own pedometer through Apple's Core Motion, after a one-time Motion & Fitness permission. The phone counts all day, even when the app is closed.

Can a step app see more than a week of history?

iOS keeps only the last seven days of pedometer data, so the app saves each day's total itself. Open it at least once a week and the history keeps growing.

Can a Borel step app read Apple Health or Apple Watch steps?

No. Borel apps don't connect to Apple Health, so they read only the iPhone's own pedometer.

Can I test a step counter in the simulator?

No, the iOS Simulator has no motion sensors; a Borel app says so on screen. Test the counting on a real iPhone with Borel Companion, which comes with Pro.

Does counting steps drain the battery?

Very little. The iPhone counts with its motion coprocessor all day anyway; the app only reads the totals.

Can friends compete in a step challenge?

Yes, with a group in Borel Cloud that friends join with an invite code. Ask each person before sharing their numbers.

Can the app remind me to walk?

Yes, with a reminder scheduled on the phone, like an evening nudge at 19:00. The exact remaining steps show when you open the app.

Can the app show distance as well as steps?

Yes. Core Motion's pedometer estimates walking distance alongside steps, so the app can show both.

Can I add tilt or shake features too?

Yes. Core Motion's motion sensors read tilt and shake with no permission, for things like a spirit level or shake to pick a walking route.

Can I publish a step counter on the App Store?

Yes. Avoid medical claims, explain the Motion & Fitness permission clearly, and publish under your Apple Developer account with Borel Pro.

Does a step counter need an internet connection?

No. Steps, goals, streaks and charts all work on the phone. Only shared challenges need a connection.

The iPhone already counts the steps; I think a good app makes them matter. Take yours for a walk.

– Sigsten

Make your iPhone app in Borel

Describe the app you want and see its first screens before you pay anything.

See your app free

Keep reading