Skip to content

Conversation

@stackotter
Copy link
Collaborator

After debugging the CI, I discovered that the CI renders at 1x scale instead of 2x scale (retina). This causes the text to get kerned differently and ends up changing the layout in ways that can't be adjusted for by just dividing by two.

This PR is based off ideas from pointfreeco/swift-snapshot-testing#533

The fix was to override the backingScaleFactor of NSWindow to 1.0 from a subclass. I also overrode the color space while I was at it just in case.

@stackotter stackotter merged commit 9313474 into main Mar 10, 2025
8 checks passed
@stackotter stackotter deleted the ui_testing branch March 10, 2025 01:08
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.

2 participants