📜  按钮颜色 swiftui - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:00.978000             🧑  作者: Mango

代码示例1
Button(action: {self.buttonTapped()}) {
  Text("Button")
           .padding(.all, 12)
          .foregroundColor(.white)
          .background(Color.red)
}