[Technical Questions] Import Design System #59
-
In what area do you have a technical challenge?Xcode, Simulator & Previews DescriptionOur team has a DesignSystem folder with all of the specified fonts, colors, etc. in it. I imported this folder into my project directory and am trying to customize my font like so:
I've tried just doing DesignSystem.header and Font.header but nothing seems to work. This is a low-priority question, but any help would be appreciated! ReproductionImport DesignSystem folder, try to reference a Font. Expected behaviorThe font should adjust according to what's specified in the design system. Additional contextNo response Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@suleesan Thank you for asking a question and sharing your issues here! Can you also share a link to the branch pushed to GitHub & with an open PR where the build is failing so we can comment on it? My suspicion is that the files were not properly added to your application target. |
Beta Was this translation helpful? Give feedback.
@suleesan I took a look at the PR and is looks like the folder was correctly referenced but the files themselves were not properly added to the Xcode project. If you drag a folder in an Xcode project, please make sure that the settings are as follows to ensure that all files are added to the right target:
I have done this in your PR and pushed the changes to the branch. I will also add some more specific feedback comments over there 👍
Regarding the general usage of custom fonts and colors: Those are tricky elements and it is challenge to ensure that your app provides a great user experience across all platforms, particularly in different modes like dark and light, and remains accessible …