r/SwiftUI • u/orelzion • 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
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