I'm writing snapshot tests for SwiftUI views using the Point-Free snapshot test library. I'd like to test that my views respond correctly to the following SwiftUI environment properties:
accessibilityDifferentiateWithoutColoraccessibilityReduceTransparencyaccessibilityReduceMotionaccessibilityInvertColors
How can I override these values in my tests?
There are public-but-undocumented, underscored versions of these symbols that can be used to override their values in tests:
_accessibilityDifferentiateWithoutColor_accessibilityReduceTransparency_accessibilityReduceMotion_accessibilityInvertColorsUsage:
It is my understanding that these values are intentionally provided by Apple for testing purposes.