-
Notifications
You must be signed in to change notification settings - Fork 314
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
[Guidance Cards][Part 2]Defer to UIAppearance proxy for color/font literals #2402
[Guidance Cards][Part 2]Defer to UIAppearance proxy for color/font literals #2402
Conversation
671841e
to
8861c30
Compare
646def8
to
75fc750
Compare
cecfd88
to
c47b8e8
Compare
75fc750
to
cddbc1d
Compare
3ec472b
to
d77cc66
Compare
c47b8e8
to
d0536ea
Compare
d77cc66
to
e75fbf1
Compare
} | ||
|
||
fileprivate func preparePrimaryLabel(_ style: InstructionsCardStyle) { | ||
primaryLabel.normalFont = style.primaryLabelNormalFont |
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.
@avi-c, is there still a need to customize the font used in the instruction card’s labels?
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.
Yes, it should still be supported if we want this to be truly flexible and this does work using DayStyle UIAppearance mechanism.
Some of the guidance card snapshot tests are failing. It might just be that the test fixtures need to be updated:
|
The test failures are definitely the test fixtures. The colors that were selected as defaults by @nishant-karajgikar are not the same as what was used previously. If we wish to fix these tests now then we could regenerate new fixtures. Alternatively we could adjust the default colors chosen in DayStyle.swift so that they match what was used in the past. @1ec5 - Any preference? However if we go the route of making new fixtures then I'll need help since I'm not sure how to regenerate the test fixtures myself. |
…nce Card styling.
…13.5 since iPhone 6 Plus is not supported in that OS but we test for it in CI.
…arance proxy based styling of Guidance Cards.
[Guidance Cards][Part 4] Remove InstructionsCardStyle class
Builds on #2401
This PR changes the UI logic in the
InstructionCardContainerView
andInstructionCardView
to defer to the color/font literals supplied by the UIAppearance proxy.