I am trying to use the SF rounded font in my SwiftUI project, how would you set it?
I already tried messing around with the .font() but it didn't work (I wasn't able to set it to this rounded font)
SwiftUI lets you customize Text by applying a . font() modifier. The default iOS font is called San Francisco and if you don't explicitly change it, then all of your text will have the default iOS look. Some other options of standard fonts include: title, headline, subheadline, body, callout, caption or footnote.
Text("Your Text").font(.system(.body, design: .rounded))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With