import SwiftUI import GoogleSignIn import FirebaseAuth struct LoginView: View { var body: some View { VStack { Button("Continue with Google") { signInWithGoogle() } Button("Create account") { createAccount() } } } func signInWithGoogle() { GIDSignIn.sharedInstance.signIn(withPresenting: rootViewController()) { _, _ in } } func createAccount() { Auth.auth().createUserWithEmailAndPassword(withEmail: "demo@example.com", password: "example") { _, _ in } } }