ViewInspector
Unit test SwiftUI views by inspecting state and simulating taps
All Skills in This Repository (1)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install ViewInspector?โผ
Run `npx skills add nalexn/ViewInspector --all -g -y` in your terminal to install all tools in this suite globally.
How to unit test SwiftUI views?โผ
ViewInspector lets you traverse the view hierarchy at runtime, read internal state, and assert on any view's properties using standard XCTest.
Can I simulate button taps in SwiftUI tests?โผ
Yes. You can programmatically trigger callbacks like button taps, toggle switches, and onAppear events directly from your tests.
Does ViewInspector use private Apple APIs?โผ
No. It relies only on the official Swift reflection API, so it is safe to use in any test target.
How to add support for a new SwiftUI API?โผ
Use the included new-api-support skill, which guides your AI agent through reverse engineering the API, writing introspection code, and adding tests.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core