{"repo":"BarredEwe/Prefire","free":true,"listed":false,"github":"https://github.com/BarredEwe/Prefire","clone":"git clone https://github.com/BarredEwe/Prefire.git","description":"🔥 A library based on Xcode Preview, for easy generation: Playbook view, Snapshot and Accessibility tests. SwiftUI and UIKit supported!","language":"Swift","stars":507,"topics":["accesibility-tests","component","ios","playbook","preview","screen","snapshot-testing","swift","swiftui","swiftui-previews"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"🔥 What is Prefire? Prefire transforms your #Preview blocks into: - ✅ Snapshot tests - ✅ Playbook views - ✅ Visual flows with states and user stories - ✅ Living documentation — fully automated 🚀 Key Features - 🧠 Smart Preview Parsing — including #Preview , @Previewable - 📸 Snapshot Testing — automatic test generation from previews - 📚 Playbook View — auto-generated interactive component catalog - 🏃 Flow-aware — build user stories from multiple preview steps - 🧩 UIKit Support — support for UIView and UIViewController - ⚙️ SPM + Xcode Plugins — works in CLI, Xcode build phases, or CI - 🧠 Fast Caching — fingerprint-based AST and body caching avoids redundant work - ✍️ Stencil Templates — customize output with your own templates Why Prefire? - 🔥 Save Time - Generate tests and documentation automatically - 🔥 Stay Consistent - Keep previews and tests always in sync - 🔥 Improve Quality - Catch visual regressions before users do - 🔥 Boost Collaboration - Share living documentation with your team --- ⚡️ Quick Start 📦 Example project available at: Prefire Example 1. Add Prefire to Your Project 2. Write #Preview 3. Run tests Just run the test target 🚀 — Prefire will auto-generate snapshots based on your previews. 💡 If your test target is empty, Prefire will still generate files and snapshot code during build. --- 📦 Installation Supports: - ✅ SPM Plugin ( Package.swift ) - ✅ Xcode Build Tool Plugin - ✅ CLI ( brew install prefire ) - ✅ Mint ( Beta ) ( mint install BarredEwe","default_branch":null,"files":null,"tree":[],"storefront":"/r/BarredEwe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BarredEwe/Prefire/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}