-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SwiftUI View to SnapshotTests #34
Conversation
Example/AccessibilitySnapshot/SwiftUIView+EmbedInHostingController.swift
Show resolved
Hide resolved
when snapshotting native SwiftUI is supported.
for equal indentation rules when the developers Xcode configuration is different from the default.
Sadly, `XCTSkipUnless` is only available for Xcode 11.4+.
to make SwiftUI not required for < iOS 13 Tests, found here https://stackoverflow.com/a/57907940
As Issue #33 seems to be a SwiftUI bug in iOS 14.0 and 14.1, this branch might not be needed anymore. But if you want, let's use it as a preparation for #37 because there are now two SwiftUI views which can be used for snapshot tests. And we now know when the SwiftUI bug is present again in newer iOS versions because we have a specific test for that. |
Example/AccessibilitySnapshot/SwiftUIView+EmbedInHostingController.swift
Outdated
Show resolved
Hide resolved
Example/AccessibilitySnapshot/SwiftUIView+EmbedInHostingController.swift
Outdated
Show resolved
Hide resolved
Example/AccessibilitySnapshot/SwiftUIView+EmbedInHostingController.swift
Outdated
Show resolved
Hide resolved
Example/AccessibilitySnapshot/SwiftUIView+EmbedInHostingController.swift
Outdated
Show resolved
Hide resolved
…ller.swift Co-authored-by: Nick Entin <[email protected]>
…ller.swift Co-authored-by: Nick Entin <[email protected]>
Co-authored-by: Nick Entin <[email protected]>
…ller.swift Co-authored-by: Nick Entin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks for adding this 🙌
This adds two SwiftUI Views as example for issue #33