nalexn / ViewInspector

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

Add support for `ignoresSafeArea()` #267

Closed Arclite closed 10 months ago

Arclite commented 11 months ago

This PR adds support for the ignoresSafeArea(_:edges:) view modifier.

Arclite commented 11 months ago

Let me know if there's anything to improve in this PR. I'm mostly not sure on the return type from the inspection; it behaves a bit like .rgba() does, but I see that that returns a struct, not a tuple. Happy to create that and put it somewhere (not sure where) if that would be preferred.

nalexn commented 10 months ago

Thanks @Arclite !