Use Mirror in Swift (reflection) to load tokens to display in design system toolbox
#1091
pylapp
started this conversation in
Ideas, studies
Replies: 0 comments
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.
-
Context
We display in the design toolbox the semantic tokens in list.
These values are hard-coded: for example in case of colors semantic tokens a
NamedColorenumeration is defined listing all expected tokens which are retrieved then through the themes.This solution is a bit heavy because we need to list manually the tokens.
In addition some of them can be missing.
Solution
Resources
Beta Was this translation helpful? Give feedback.
All reactions