Skip to content
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

Add LaneView snapshot tests. #3976

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MaximAlien
Copy link
Contributor

Description

Fixes #3972.

PR adds LaneView snapshot tests to verify whether appearance styling colors are applied correctly for specific trait collections.

@MaximAlien MaximAlien added op-ex Refactoring, Tech Debt or any other operational excellence work. UI Work related to visual components, Android Auto, Camera, 3D, voice, etc. CarPlay Bugs, improvements and feature requests on Apple CarPlay improvement Improvement for an existing feature. labels Jun 29, 2022
@MaximAlien MaximAlien requested a review from a team June 29, 2022 23:54
@MaximAlien MaximAlien self-assigned this Jun 29, 2022
@MaximAlien MaximAlien changed the base branch from main to maxim/3974-fix-lane-view-styling June 29, 2022 23:55
… on CarPlay for light and dark appearance.
@MaximAlien MaximAlien marked this pull request as draft June 30, 2022 00:26
@@ -262,10 +262,6 @@ open class DayStyle: Style {
LaneView.appearance(for: phoneTraitCollection).secondaryColor = .defaultLaneArrowSecondary
LaneView.appearance(for: phoneTraitCollection).primaryColorHighlighted = .defaultLaneArrowPrimaryHighlighted
LaneView.appearance(for: phoneTraitCollection).secondaryColorHighlighted = .defaultLaneArrowSecondaryHighlighted
LaneView.appearance(for: phoneTraitCollection, whenContainedInInstancesOf: [LanesView.self]).primaryColor = .defaultLaneArrowPrimary
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need to set appearance for cases when LaneView is inside LanesView, because setting appearance for phoneTraitCollection covers this case.

@MaximAlien MaximAlien force-pushed the maxim/3974-fix-lane-view-styling branch 2 times, most recently from 215af69 to 6fed0a0 Compare July 7, 2022 19:50
Base automatically changed from maxim/3974-fix-lane-view-styling to main July 7, 2022 20:29
Comment on lines 337 to 338
/// :nodoc:
open class LaneView: UIView {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for documenting all the members of this class! Note that they still won’t show up in jazzy because the class itself is undocumented. I think that’s OK but just FYI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CarPlay Bugs, improvements and feature requests on Apple CarPlay improvement Improvement for an existing feature. op-ex Refactoring, Tech Debt or any other operational excellence work. UI Work related to visual components, Android Auto, Camera, 3D, voice, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement LaneView snapshot tests.
2 participants