sherlouk/accessibilitysnapshotcolorblindness
This package makes it easier for you to understand the implications of your app's design on users with various types of color blindness.
Usage
// 1. Import
import AccessibilitySnapshotColorBlindness
// 2. Create UIView, UIViewController or UIImage.
let systemUnderTest = // ... your code
// 3. Assert Snapshot
assertSnapshot(matching: image, as: .image_colourBlindness(type: .protanopia))You may wish to use MatrixTypes.allCases to snapshot all variations of your view. You can see an example of this in our tests.
Shoutouts
- The filters used by this package originated in this repository by Kyo Nagashima.
- This project was inspired by AccessibilitySnapshot.
- This project wouldn't have been possible without SnapshotTesting.
Package Metadata
Repository: sherlouk/accessibilitysnapshotcolorblindness
Default branch: main
README: README.md