-
Notifications
You must be signed in to change notification settings - Fork 5
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
Update to Xcode 16 #549
Update to Xcode 16 #549
Conversation
@@ -65,6 +65,7 @@ class DefaultAvatarProvider: AvatarProviding { | |||
private func applyCornerRadius() { | |||
guard !skipStyling else { return } | |||
avatarImageView.layer.cornerRadius = avatarCornerRadius | |||
avatarImageView.layer.cornerCurve = .circular |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Snapshots look nice as far as I can tell.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
(I ran snapshot tests in my local with iPhone SE 3rd gen. iOS 18.0)
📲 You can test the changes from this Pull Request in Gravatar SwiftUI Prototype Build by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Gravatar UIKit Prototype Build by scanning the QR code below to install the corresponding build.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent 🚀
@@ -3,6 +3,6 @@ | |||
# This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used | |||
# to set up some variables that will be interpolated in the `.yml` pipeline before uploading it. | |||
|
|||
export IMAGE_ID=$(echo "xcode-$(cat .xcode-version)") | |||
export IMAGE_ID="xcode-16.0-v7" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, nice.
override func invokeTest() { | ||
withSnapshotTesting(record: .failed) { | ||
super.invokeTest() | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know about this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new after updating the package.
If the snapshot comparison fails, there will be a new recording right away, but the test will also fail.
I think this is good to see right away what's de difference, and we can choose to save it (just run the test again it will succeed), or choose to make changes if the diff is unwanted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @pinarol
Closes #413
Description
This PR takes the work from #414, trying to fix the issue with circular corner radius on snapshot tests.
The way to fix this I found is to add this line on the Avatar view layer:
avatarImageView.layer.cornerCurve = .circular
And it seems to work.
There are also small differences on how things are rendered, so mostly all snapshot need re-drawing (mostly fonts).
It's important to check that the differences are not noticeable by the eye.
Testing Steps