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)
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)
Converted the UIKit answer by @Pomme2Poule into a function for easy use, should anyone need it. Function uses dynamic type too, so it'll scale with the font size.
I know the question is about SwiftUI, but I thought it could be helpful to also include an UIKit answer.
Doing it this way works for me on a
Text
object inSwiftUI
:.font(.system(size: 13.0, weight: .regular, design: .rounded))