import SwiftUI
import PlaygroundSupport
struct ContentView: View {
var body: some View {
VStack {
ForEach(Font.TextStyle.allCases, id: \.self) { style in
Text(self.describe(style: style)).font(.system(style)).italic()
}
}
}
func describe(style: Font.TextStyle) -> String {
var s: String = ""
print(style, terminator: "", to: &s)
return s
}
}
PlaygroundPage.current.setLiveView(ContentView())生产

是bug还是我漏掉了什么?
发布于 2020-02-08 18:12:04
来自苹果的最终答案
解决方案:调查完成-按照当前设计工作
和苹果一起玩得开心。
https://stackoverflow.com/questions/59640260
复制相似问题