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
Fix LaneView
styling on CarPlay.
#3975
Conversation
/** | ||
Returns hex representation of a `UIColor`. | ||
*/ | ||
var hexString: String { |
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.
Added for debugging purposes to simplify detection of color differences.
let darkImage = darkLanesImage { | ||
// `CPImageSet` applies `lightContentImage` for dark appearance and `d`arkContentImage` | ||
// for light appearance, because of this `darkImage` is set for `lightContentImage` parameter. | ||
return CPImageSet(lightContentImage: darkImage, darkContentImage: lightImage) |
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 looks like a system bug, basically colors are inverted. CPImageSet
was also deprecated in iOS 13. I'll create a separate ticket to find a suitable replacement.
58d8b74
to
70ae4e2
Compare
…ince it has no effect.
215af69
to
6fed0a0
Compare
Cherry-picked to |
Description
PR fixes #3974.
CarPlay was using incorrect
LaneView
styling due to two issues:CPImageSet
useslightContentImage
for dark appearance anddarkContentImage
for light appearance (looks like a system bug).