Open1
よくあるボタンをSwiftUIで作る
Button {
} label: {
Text("Checkout")
.font(.custom(customFont, size: 18).bold())
.foregroundColor(.white)
.padding(.vertical, 18)
.frame(maxWidth: .infinity)
.background(Color("Purple"))
.cornerRadius(15)
.shadow(color: Color.black.opacity(0.06), radius: 5, x: 5, y: 5)
}