How I Learned SwiftUI to Build Spenzy

8 min read

I started learning SwiftUI in 2023, right after WWDC, and I loved it. I wanted to do it properly: learn by building one real project, all the way to the end.

I picked a personal expense tracker. I'd tried plenty of expense apps and none of them stuck, except one: Buddy. At the time it felt like the only one that was both well designed and well built. Everything was smooth, and it did exactly what I needed, tracking my budget and my spending, without getting in the way.

So the question became: how do you build an app that runs this smoothly and looks this good?

How I actually learned

I was a total beginner, so I started with Apple's own Develop in Swift tutorials. They're a great place to begin: they teach you the code and Xcode together, with practical explanations, and each one ends with a quiz to test what stuck.

Once I knew what I wanted to build, though, they felt slow. For anything more advanced I went to YouTube. Sean Allen, tundsdev and Kavsoft became my go-to channels whenever I needed a practical implementation: I'd follow along step by step, then adapt it to Spenzy. Paul Hudson's Hacking with Swift, Fatbobman's articles and Twitter filled in the rest.

AI wasn't nearly as capable back then, so I used it differently. What I was building never matched a tutorial exactly, so I'd learn the concept from a video or article, then talk it through with an LLM to check my understanding, or to work out what was causing a bug. But I never asked it to write the code for my app.

Designing it first

I started in Figma and explored widely, from clean, minimal screens to full-on brutalism. But I didn't wait for the whole flow. I designed the two screens that mattered most, the home screen and adding a transaction, and stopped there.

The Figma canvas: rounds of explorations for Spenzy, from minimal screens to brutalism
Four polished home screen explorations for Spenzy: white, lime green, light grey and purple with a dark list

I kept the scope small on purpose, because what I really wanted to know was whether SwiftUI could match my Figma design one to one. The logo, the name and the brand could wait; I'd build the identity once the look was right.

Building it block by block

I started small: one piece at a time, then put the pieces together into a full screen.

What surprised me was how close SwiftUI feels to a design tool. You write it instead of clicking it, but the ideas are the same. Modifiers are the clearest example: corner radius, shadow, border and fill go straight onto a view, with no extra libraries.

Better still, you can bundle modifiers into your own and reuse them anywhere. If you know Figma, it's a style, not a component. Say every card needs the same padding, fill, radius, border and shadow. I grouped all of that into one modifier called cardDefault, and now any view can wear it.

extension View {
    func cardDefault() -> some View {
        self
            .padding()
            .background(Color(.secondarySystemBackground))
            .clipShape(RoundedRectangle(cornerRadius: 16))
            .overlay(
                RoundedRectangle(cornerRadius: 16)
                    .stroke(.gray.opacity(0.15), lineWidth: 1)
            )
            .shadow(color: .black.opacity(0.08), radius: 8, y: 4)
    }
}

// Use it on anything
Text("Total spent")
    .cardDefault()

Chasing the "smooth" feeling

Interactions are where I really fell for SwiftUI. Fluid transitions between screens are easy, and you can animate almost anything, with whatever easing and duration you like, by adding one modifier.

Here's a budget bar that springs to its new value whenever you add a transaction:

struct BudgetBar: View {
    var progress: Double // 0.0 to 1.0

    var body: some View {
        GeometryReader { geo in
            Capsule()
                .fill(.gray.opacity(0.2))
                .overlay(alignment: .leading) {
                    Capsule()
                        .fill(.green)
                        .frame(width: geo.size.width * progress)
                }
        }
        .frame(height: 8)
        // One line, and every change to progress animates
        .animation(.spring(duration: 0.5, bounce: 0.3), value: progress)
    }
}

Want a different feel? Swap the curve for .easeInOut(duration: 0.3), .bouncy or .snappy. It's exactly like changing the easing on a prototype.

For more expressive motion there's keyframeAnimator, which works like the timeline in a motion tool: each property gets its own track and timing. In Spenzy I used it in the wallet creation flow: every time you change the wallet's look, the card dips down, squeezes a little and springs back into place.

BCARp2.500.000
WalletCard()
    .keyframeAnimator(initialValue: keyFrameWalletCardAnimation(), trigger: cardAnimation) { content, phase in
        content
            .scaleEffect(phase.scale)
            .offset(y: phase.offsetY)
    } keyframes: { value in
        // Track 1: settle, squeeze, then back to full size
        KeyframeTrack(\.scale) {
            SpringKeyframe(1, duration: 0.4, spring: .bouncy)
            SpringKeyframe(0.8, duration: 0.3, spring: .bouncy)
            SpringKeyframe(1, duration: 0.4, spring: .bouncy)
        }
        // Track 2: drop down, then bounce back up
        KeyframeTrack(\.offsetY) {
            SpringKeyframe(100, duration: 0.3, spring: .bouncy)
            SpringKeyframe(0, duration: 0.4, spring: .bouncy)
        }
        KeyframeTrack(\.rotate) {
            SpringKeyframe(0, duration: 0.3, spring: .bouncy)
            SpringKeyframe(15, duration: 0.4, spring: .bouncy)
        }
    }

That's when it hit me: we can actually build almost anything the way we design it. As designers we often hand over beautiful animations, and the shipped app doesn't quite live up to them. Finding out I could close that gap myself was a very designer moment. XD

Then came the hard part: data

Apple released SwiftData in 2023. At first very few people wrote about it, LLMs barely knew it, and it still had plenty of bugs. After WWDC 2024 it got much better, and learning resources finally started to appear.

I built Spenzy on SwiftData anyway. It was the newest option, with Core Data underneath, and in Apple's demos and YouTube tutorials it looked so simple that everything just made sense.

Doing it myself was a different story. Data modeling turned out to be the hardest part of the whole project. Resources were thin, one mistake in a model could crash the app, and as a beginner I often got stuck without knowing where to look next.

That's when I realized an LLM wasn't enough. It could explain a concept, and it could sound sure while being wrong. Sometimes you need a real person who has shipped apps to review your code and explain why it breaks.

So I went looking for a mentor and found an experienced iOS developer, a really great guy. We went through Spenzy together on a call, and he helped me fix the SwiftData issues and, more importantly, understand them. Looking back, they were all beginner mistakes.

Session details: a 60 minute technical mentoring session with Azam Mukhtar, Senior iOS Engineer, asking for technical advice on iOS development

I still like the front end best, though: building the UI and making it move.

Where Spenzy is now

Five Spenzy screens today: adding an expense, the monthly expense list, colourful wallet cards, a category budget and settings

It took me a long time to share Spenzy. As a designer I wanted it to feel polished before anyone saw it, and I didn't feel ready, so development stretched on before I finally opened a public test.

I shared the TestFlight on Twitter in September 2024, and it got far more attention than I expected: 150+ testers signed up. For the first time, real people were using Spenzy and sending real feedback, instead of it living only on my phone.

Getting to the App Store took another year. It was a side project I built myself, with AI as my thinking partner, and work was rough at the time, so I didn't have much time left for it. I kept shipping updates through TestFlight until the release build was ready.

Today Spenzy has been on the App Store for a year, with 10k downloads and around 2k monthly active users. The biggest single push came from Reddit: one post about Spenzy reached 75k views, from all over the world.

My r/iosapps post introducing Spenzy as a simple, free expense tracker, with 116 upvotes, 143 comments and 75K views

Growth since then has been slow, and honestly that's on me. I was excited at launch, but I didn't keep sharing consistently, and the momentum faded. Marketing is not my strength, but at least I tried.

Building Spenzy today

Building an app today is very different from two or three years ago. Back then I never let AI write my code. Now it helps with everything from planning to design to code, and Spenzy improves much faster because of it.

My monitor showing the Spenzy team of AI agents, each with its own role: designer, release notes, engineering lead, iOS engineer, campaign visuals, marketing and release

The bigger change is where my time goes. I can spend it on what I care about most, design and experience, and build interactions I don't think I could ever have built on my own.

What I learned along the way

  • Finish one real project. I learned more from Spenzy than from every throwaway project before it. A real app makes you solve the problems tutorials skip.
  • Work in small milestones. I used to work on lots of things at once and lump them into one commit, so when something broke I had nothing to go back to. Small checkpoints are easier to track, and you can simply roll back.
  • Don't keep it to yourself for too long. Go public early, and get real users and real feedback as soon as you can.
  • Make feedback easy to give. Spenzy uses a Google Form today, so people have to leave the app to reach it. I still get a lot of feedback, which I'm grateful for, but it belongs inside the app.
  • The App Store is only halfway. If you don't want zero downloads, you have to market it: use every channel you can, stay consistent, and share work in progress long before a release. I'm not good at this yet, but Reddit taught me it pays off.

What's next

Spenzy is far from done, and so am I.

Something big is coming to Spenzy. Soon you'll be able to use it with your partner, family and friends, on a bigger screen, and even through your favorite AI agent. Feedback is moving inside the app too, so you can tell me what you think without leaving it.

Getting better at the part I'm worst at. I'm learning to market Spenzy properly: better ASO (App Store Optimization), reaching more people around the world, and sharing more work in progress, starting with posts like this one.

Giving back. I grew as a designer thanks to the community, so I want to share more of this journey and what I learn along the way.

If you made it this far, thank you! If you want an expense tracker that's simple and feels good to use, give Spenzy a try: Spenzy on the App Store. And if you have feedback, I'd genuinely love to hear it.

That’s the end of the roll.