u/Alfoneye

SwiftUI boilerplate/template for a Python/FastAPI dev using my own external backend?

I’m a not so recent anymore CS grad building a personal SwiftUI app as a frontend for my own FastAPI backend hosted on Railway.

My main background is Python/FastAPI, data/AI work, and React, so I’m not trying to become a SwiftUI expert. I just want to avoid building a messy app architecture.

The app uses Supabase/Clerk-style auth only for OAuth/JWTs, then sends the Bearer token to my backend. The backend handles the real logic and stores data in PostgreSQL.

What I’m looking for is an opinionated SwiftUI boilerplate/template or example repo for best practices on:

- Clean networking

- Auth token handling

- Local caching to reduce API calls

- Async state management

- A structure that works well when SwiftUI is mostly just the frontend

Would you recommend MVVM, Clean Architecture + MVVM, TCA, or something else for this kind of setup?

Any good example repos/templates would be appreciated.

reddit.com
u/Alfoneye — 22 hours ago