📜  为 swiftui 按钮添加边框 - Swift 代码示例

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

代码示例2
Button(action: {
        print("sign up bin tapped")
    }) {
        Text("SIGN UP")
            .frame(minWidth: 0, maxWidth: .infinity)
            .font(.system(size: 18))
            .padding()
            .foregroundColor(.white)
            .overlay(
                RoundedRectangle(cornerRadius: 25)
                    .stroke(Color.white, lineWidth: 2)
        )
    }