我正在尝试在SwiftUI中将文本更改为小型大写。但是我不知道如何将这个方法应用到我的文本中。
https://developer.apple.com/documentation/swiftui/font/3084273-smallcaps
我尝试过不同的方法,这里有两种:
Text("Typography")
.font(.system(size: 24))
.fontWeight(.bold)
.smallCaps()-
Text("Typography")
.font(.system(.body, textStyle: .smallCaps))如何将我的字母设置为小型大写?我正在使用Xcode11.3。
谢谢!
发布于 2020-04-01 06:30:31
这段代码终于对我起作用了:
Text("Typography")
.font(Font.system(.body).smallCaps())https://stackoverflow.com/questions/60960818
复制相似问题