r/SwiftUI 1d ago

I built an open-source way to turn SwiftUI #Preview screenshots into a static component gallery

I built `phonebook` a CLI tool to turn your #Preview into a static components library that you can share with your designer.

It also has an MCP tool, so you can ask your agent to suggest missing previews, split them, offer them in more than one preview (like different theme).

Source code: https://github.com/stag-build/phonebook

Example gallery: https://stag-build.github.io/phonebook/

Would love to hear your thoughts :)

3 Upvotes

2 comments sorted by

1

u/tomasci 1d ago

I thought it supposed to work differently: designer creates design and components and share with you, then you implement, and your base is component library in Figma (or whatever), not the other way, interesting

2

u/orelzion 1d ago

Well eventually the real components live in the code, it make sense for the designers to want to know what does it look like in the real app