nalexn / ViewInspector

Runtime introspection and unit testing of SwiftUI views
MIT License
2.16k stars 148 forks source link

[WIP] Closures in environment block view inspection #247

Closed bachand closed 1 year ago

bachand commented 1 year ago

This PR is not ready to be merged. I'm finding that we can't inspect views when there is an environment value that is a closure. Boxing the closure in a struct avoids the issue. So far I do not have a fix. I've written tests to demonstrated what I described.

bachand commented 1 year ago

Closing in favor of https://github.com/nalexn/ViewInspector/pull/248