SwiftUI Button set background black without white border

35 views Asked by At

I am trying to create a swiftui button that is all black background with white text but when I am getting a whitish/greyish border with this code:

                Button(action: {
                    viewStore.send(.googleSSOButtonTapped)
                }) {
                    HStack {
                        Image("google")
                            .resizable()
                            .frame(width: 24, height: 24)
                        Text("Sign in with Google")
                            .font(.title2)
                            .foregroundColor(.white)
                            .bold()
                    }
                    .padding()
                    .background(Color.black)
                    .cornerRadius(8.0)
                    .shadow(radius: 4.0)
                    .clipShape(Rectangle())
                }

Here is what it looks like:

enter image description here

0

There are 0 answers