-
Notifications
You must be signed in to change notification settings - Fork 313
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
base: main
Are you sure you want to change the base?
Conversation
…LaneSnapshotTests` to `LaneViewSnapshotTests`.
… on CarPlay for light and dark appearance.
@@ -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 |
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.
There is no need to set appearance for cases when LaneView
is inside LanesView
, because setting appearance for phoneTraitCollection
covers this case.
215af69
to
6fed0a0
Compare
/// :nodoc: | ||
open class LaneView: UIView { |
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.
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.
Description
Fixes #3972.
PR adds
LaneView
snapshot tests to verify whether appearance styling colors are applied correctly for specific trait collections.