Native iOS features
Build an iPhone app with charts and graphs
Borel builds iPhone apps with real charts, drawn by Apple's Swift Charts: bars, lines, areas, points and rings that redraw as the numbers change. Describe what your app keeps track of and what you'd like to see, and Borel writes the charts in Swift from the app's own data, beside the lists and screens that fill them.
privatevar donutCard: someView {VStack(alignment: .leading, spacing: 12) {Text(isCurrentMonth ? "This month" : "Spent") .font(.subheadline).foregroundStyle(.secondary)ZStack {Chart(categoryTotals) { item inSectorMark( angle: .value("Amount", item.total), innerRadius: .ratio(0.64), angularInset: 1.5 ) .cornerRadius(5) .foregroundStyle(item.category.color) } .chartLegend(.hidden) .frame(height: 240)VStack(spacing: 2) {Text("Total").font(.caption).foregroundStyle(.secondary)Text(total.asCurrency) .font(.title2.bold()) .minimumScaleFactor(0.6) .lineLimit(1) .contentTransition(.numericText()) } .frame(maxWidth: 120) } } .padding() .frame(maxWidth: .infinity, alignment: .leading) .background(Color(.secondarySystemGroupedBackground), in: RoundedRectangle(cornerRadius: 16))}Ideas
What you can build with charts
A few apps people make with it. Describe yours in your own words.
A spending overview
A ring of this month's spending by category, and a bar for each day.
A lifting log
Your heaviest lift for each exercise over time, as a line.
A habit tracker
Weeks of ticked-off habits as a simple bar chart.
A mood journal
How each day of the month felt, at a glance.
Try it
A prompt to start from
Copy it, or start with it and change it to fit your idea.
“An expense tracker with a ring chart of this month's spending by category and a bar chart by day.”
From words to your iPhone
Three steps, no code
- 1
Describe it
Say what the app does in plain words, or start from the prompt above. No code, and no Mac.
- 2
Watch it build
Borel writes the Swift, compiles it with Xcode on its own Mac and opens it in the iOS Simulator, streamed into your browser.
- 3
Put it on your iPhone
Borel Companion installs it over a cable the first time, then over Wi-Fi, and while it runs it puts each new version on by itself.
How Borel handles it
Written in Swift, with Apple's own frameworks
What Borel takes care of for you, so the feature works the way iPhone owners expect.
Apple's Swift Charts
Every chart is a SwiftUI view from Apple's Charts framework, not a picture, so it redraws the moment the data changes.
From the app's own data
A chart reads the same data as the app's lists, saved on the phone with SwiftData or in your app's cloud.
Ordinary Swift
The code above is from a real Borel build. Download any app's project and its charts are plain Swift you can read.
Charts draw wherever the app runs: in the iOS Simulator in your browser while you build, and on your iPhone with Borel Companion.
Your Apple ID
Works with a free Apple ID
Yes. Borel Companion puts the app on your own iPhone with a free Apple ID, which keeps up to 3 of your apps there, and Companion renews them every 7 days for you.
Frequently asked questions
Bars, lines, areas, points and rings, alone or together, all from Apple's Swift Charts.
Yes. A chart reads the app's data, so adding an expense or a workout redraws it straight away.
Yes. Swift Charts can highlight the value under a finger, so ask for it where it helps.
Yes. Ask for the chart you want in the chat, such as “a bar chart of steps per day”, and Borel adds it.
Build your app with charts
Start from the prompt above, change it to fit your idea, and Borel builds it while you watch.