Skip to content

Commit dc99e45

Browse files
google button
1 parent 72c508a commit dc99e45

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

FirebaseSwiftUI/FirebaseGoogleSwiftUI/Sources/Views/GoogleButtonView.swift

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,24 @@ extension GoogleButtonView: View {
2727
}
2828
}) {
2929
if authService.authenticationState != .authenticating {
30-
Text(authService.authenticationFlow == .login ? "Login with Google" : "Sign-up with Google")
31-
.padding(.vertical, 8)
32-
.frame(maxWidth: .infinity)
30+
HStack {
31+
Image(systemName: "globe") // Placeholder for Google logo
32+
.resizable()
33+
.frame(width: 20, height: 20)
34+
.padding(.leading, 8)
35+
36+
Text(authService
37+
.authenticationFlow == .login ? "Login with Google" : "Sign-up with Google")
38+
.foregroundColor(.black)
39+
.padding(.vertical, 8)
40+
.frame(maxWidth: .infinity)
41+
}
42+
.background(Color.white)
43+
.cornerRadius(8)
44+
.overlay(
45+
RoundedRectangle(cornerRadius: 8)
46+
.stroke(Color.gray, lineWidth: 1)
47+
)
3348
} else {
3449
ProgressView()
3550
.progressViewStyle(CircularProgressViewStyle(tint: .white))

0 commit comments

Comments
 (0)