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) 回答1: Text("Your Text").font(.system(.body, design: .rounded)) 回答2: I know the question is about SwiftUI, but I thought it could be helpful to also include an UIKit answer. let fontSize: CGFloat = 24 // Here we get San Francisco with the desired weight let systemFont = UIFont.systemFont(ofSize: