Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use SF Rounded font in SwiftUI?

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)

like image 919
Patrik Svoboda Avatar asked Jun 11 '19 18:06

Patrik Svoboda


People also ask

What fonts are available in SwiftUI?

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.


Video Answer


1 Answers

Text("Your Text").font(.system(.body, design: .rounded))
like image 83
Fabio Giolito Avatar answered Oct 26 '22 23:10

Fabio Giolito