File tree Expand file tree Collapse file tree
FirebaseSwiftUI/FirebaseGoogleSwiftUI/Sources/Views Expand file tree Collapse file tree Original file line number Diff line number Diff 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) )
You can’t perform that action at this time.
0 commit comments