iOS 16 SwiftUI ImageRenderer #612
john-flanagan
started this conversation in
Ideas
Replies: 1 comment
-
What happens when a view in its initial state transitions to another state, for example, an overlay view in response to a changing property? Is the initial UI state captured as an image or the final UI state in response to view update? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With iOS 16 Apple is introducing a class purpose built for converting SwiftUI
View
s intoUIImage
s called ImageRenderer.Seems like it could be a great tool for more reliable SwiftUI snapshot tests.
I put together a PoC branch as a starting point, but I'm hoping to start a discussion on the approach and the API design.
main...john-flanagan:swift-snapshot-testing:swift-ui-image-renderer
Beta Was this translation helpful? Give feedback.
All reactions