【发布时间】:2020-04-18 21:45:58
【问题描述】:
如何在 Swift 5 (Storyboard) / Xcode 11 中使用小型大写字母?
Here's what I'm trying to accomplish.
我想出了如何在 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)
感谢您的帮助。
【问题讨论】:
标签: ios swift typography xcode11.4