【发布时间】:2021-07-31 04:09:18
【问题描述】:
看来 SwiftUI 字体斜体修饰符对系统字体样式的文本没有影响。
拥有.font(.system()) 使.italic() 不再更改字体样式。这种行为有解决方法吗?
.rounded 设计在应用斜体修饰符后应该仍然存在。
Text(sampleSentence)
.italic() // <--- Does not work
.font(.system(size: 20, weight: .regular, design: .rounded))
【问题讨论】: