iOS-SwiftUI基础-Text
2020-06-23 本文已影响0人
蓝不蓝编程
效果图

代码
Text("普通文本1")
Text("加粗文本").bold()
Text("斜体文本").italic()
Text("下划线").underline()
Text("删除文本").strikethrough()
Text("大号文本").font(.system(size: 30))
Text("普通文本").foregroundColor(Color.red)
Text("文本背景").background(Color.orange)