nalexn / ViewInspector

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

Modify for WatchKit app support #251

Closed lodstar closed 1 year ago

lodstar commented 1 year ago

From Xcode 14 onwards, watchOS apps are now generated as a single target by default. However, in projects created with a single target, using ViewInspector was not possible. So, I made some code modifications to allow the use of ViewInspector in a single target watchOS app. Could you please take a look and confirm if it works? Thank you.

nalexn commented 1 year ago

All good - thanks for the PR!