Less use of utility methods depending to color scheme for colors and elevations #574
Closed
pylapp
started this conversation in
Ideas, studies
Replies: 2 comments 1 reply
-
|
@fsuc Let us know if this type of evolution is more interesting from your point of view ;) |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Delivered with version 0.13.0 (#606) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
The OUDS core maintainers team got some remarks from potentiel users who looked inside the library (@fsuc at least).
One of the remark is about the use of some methods depending to color scheme.
Samples
For example for colors uses:
But also for elevation uses:
Issue
The comments we got were about the use of
color(for:)andelevation(for:)used after having got the suitable multiple tokens through the suitable providers through the theme. That's long and users may not want to use this method. We agree this use is a bit long even if Xcode has autocompletion.Fix proposal
The core maintaners team plans to enrich the OUDS iOS API so as to void to use each time the
color(for:)andelevation(for:)methods. These methods remain in the lib as still used and helpful in other cases.Evolutions are the ones below, and should be merged with issue #146 (pull request #575)
For colors:
For elevations:
Beta Was this translation helpful? Give feedback.
All reactions