Answers for "swiftui add border to button"

3

add buton border swift

button.layer.borderWidth = 1
button.layer.borderColor = UIColor.black.cgColor
Posted by: Guest on April-26-2020
0

add border to button swiftui

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)
        )
    }
Posted by: Guest on March-13-2020

Code answers related to "swiftui add border to button"

Code answers related to "Swift"

Browse Popular Code Answers by Language