Skip to content

Conversation

codeman9
Copy link
Contributor

The UIGraphicsBeginImageContextWithOptions was setting the scale parameter to 0 which will default to the device's UIDevice.main.scale. This results in an incorrect difference image when taking snapshots for different devices. Instead, use the maximum scale of one of the passed in UIImages.

@stephencelis
Copy link
Member

Looks good, thanks for submitting!

@stephencelis stephencelis merged commit 8e78b7d into pointfreeco:main Jun 4, 2021
mac-gallagher pushed a commit to mac-gallagher/swift-snapshot-testing that referenced this pull request Aug 22, 2021
niil-qb pushed a commit to quickbit/swift-snapshot-testing that referenced this pull request Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants