Skip to content
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

Add font_design modifier #852

Merged
merged 4 commits into from
Apr 27, 2023
Merged

Add font_design modifier #852

merged 4 commits into from
Apr 27, 2023

Conversation

supernintendo
Copy link
Contributor

@supernintendo supernintendo commented Apr 24, 2023

Adds the fontDesign text input and output modifier:

<VStack id="font_design">
  <Text modifiers={font_design(@native, design: :default)}>This text is default</Text>
  <Text modifiers={font_design(@native, design: :monospaced)}>This text is monospaced</Text>
  <Text modifiers={font_design(@native, design: :rounded)}>This text is rounded</Text>
  <Text modifiers={font_design(@native, design: :serif)}>This text is serif</Text>
</VStack>

Screenshot 2023-04-24 at 11 30 15 AM

Closes #300

@carson-katri
Copy link
Contributor

I can look into availability checks in the registry generator.

supernintendo and others added 2 commits April 27, 2023 13:03
Co-authored-by: Carson Katri <Carson.katri@gmail.com>
Signed-off-by: May Matyi <may@matyi.net>
@supernintendo supernintendo merged commit 73b2049 into main Apr 27, 2023
@supernintendo supernintendo deleted the font-design-modifier branch April 27, 2023 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modifier -> SwiftUI -> Text input and output: fontDesign(_:)
3 participants