-
Notifications
You must be signed in to change notification settings - Fork 589
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
iOS 17 Snapshots have weird edges and radius #790
Comments
We are also getting jagged and blurry border edges when recording snapshots in Xcode 15 / iOS 17. Only in the snapshots, not in our app. |
From what I can see the issue seems to be related to any kind of RoundedRectangle in SwiftUI with a border (also SwiftUI.Toggle). Side note: Recently SnapshotTesting was crashing for me when changing my own uneven rectangle implementation to apples UnevenRoundedRectangle() - maybe this is related 🤷🏻♀️ |
I fixed this issue by explicitly using a |
I'm seeing this on Xcode 16 / iOS 18 with UIKit buttons now 😬 (worth noting #606 seems to be the same issue) |
I'm not sure if its just me, but it seems using a corner radius of I think for UIKit, if you manually mask your view using a |
I think actually, if you do |
I'm still having this issue on Xcode 16 and tvOS 18. Using |
Describe the bug
When I run my tests on iOS17 I get different version than the previous versions. It's weir because the components itself doesn't change visually on my app, only in the snapshots. It happens with some components that have radius or curved edges.
This is happening for UIKit and SwiftUI components. They also have different approaches. In the screenshot we see an screenshot of one Capsule SwiftUI item, but is happening the same with an UIKit item built with a background color and shaped.
To Reproduce
This is the body of the Capsule item of the screenshot bellow.
Expected behavior
On previous iOS versions we had a clear Snapshot with the Capsule or Circle shape. Right now we get the good shape on the app (nothing changed) but not at the Snapshot.
Screenshots
Environment
The text was updated successfully, but these errors were encountered: