Docs
Inputs

Split StepperNew

A bill splitter: the share each person pays rolls as you step the head count, the house aura pulsing at the side you press.

By

Split Stepper: SwiftUI Split the Bill Stepper for iOS, live preview in light mode

Split Stepper, a SwiftUI Split the Bill Stepper for iOS 17+, in its live preview. Open Code for the Swift source.

$npx swiftpieces add SplitStepper
Free · MIT + Commons ClauseiOS 17.0+steppersplitbillpaymentpeopleauramoney
Type
SplitStepper
Files
SplitStepper.swift
Depends on
Nothing (Apple frameworks only)
Version
1.0.0

Colors for SplitStepper. .standard is the house palette.

Notes

  • The share each person pays is the hero. It rolls to each new figure, counting up or down with the direction you stepped.
  • Each tap pulses the house aura at the side you pressed, then lets it settle back around the stepper. A dot pops in or out for each person, in eight colours that repeat.
  • A tap past range shakes the stepper and plays an error haptic. The share stays where it was.
  • The share is total divided evenly and rounded to cents. Any remainder is left for you to settle, such as on the first person.
  • Amounts are shown in currencyCode in the person's locale.
  • VoiceOver reads the people and the share as one adjustable element: swipe up or down to change it.
  • Under Reduce Motion the light holds still and the dots appear without scaling. Under Reduce Transparency the aura becomes a plain red edge.

Usage

SplitStepperExample()

Install

Pick one. Run it from the folder that contains your .xcodeproj and the files land inside your app.

Terminal

$npx swiftpieces add SplitStepper

Or ask your coding agent · Claude Code, Cursor or Xcode, once the MCP server is connected

>Add the SwiftPieces "Split Stepper" piece to my app

Or copy the source above into your app.

New to SwiftUI?If you know React, CSS or Tailwind, SwiftUI is easier to pick up than it looks.Try real app patterns first

Building a whole app? See SwiftPieces Pro →

All inputs and forms →

Build it yourself: SwiftUI haptics guide

On this page

SwiftPiecesPro

Build the whole app with one library.

Production-ready screens, whole flows, complete app templates, a Build Kit your agent follows and Pro remixing.

Explore Pro