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

SwiftUI support #8

Open
AccuPhoenix01 opened this issue Sep 25, 2020 · 1 comment
Open

SwiftUI support #8

AccuPhoenix01 opened this issue Sep 25, 2020 · 1 comment

Comments

@AccuPhoenix01
Copy link

SwiftUI doesn't treat UIFonts like its own SwiftUI Font class, so by default using the same paradigm of the pod doesn't work. Would be great to have baked-in SUI support that can use the same syntax as before.

BTW, I love Swash and has made it easy to use in new AccuWeather app. 🤩

@AccuPhoenix01
Copy link
Author

this might be as easy as:
let swashFont = Solis.black.of(size: 18) as CTFont

then

Text("words")
  .font(Font(swashFont))

and really not require any change.

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

No branches or pull requests

1 participant