如何在 Swift 5 (Storyboard) / Xcode 11 中使用小型大写字母?
我想出了如何在 SwiftUI 中做到这一点:
Text("Typography")
.font(Font.system(.body).smallCaps())
但是现在不要在 Storyboard-App 中如何做到这一点。
到目前为止,这是我的代码:
labelBrand.font = UIFont.monospacedSystemFont(ofSize: 14, weight: UIFont.Weight.bold)
labelPorsche.font = UIFont.monospacedSystemFont(ofSize: 18, weight: UIFont.Weight.regular)
谢谢你的帮助。