   @Binding var text: String
   let placeholder: String
   let symbolName: String
-  
+
   var body: some View {
     HStack {
       Image(systemName: symbolName)
         .imageScale(.large)
         .padding(.leading)
-      
+
       TextField(placeholder, text: $text)
         .padding(.vertical)
         .accentColor(.orange)

import SwiftUI
import Firebase


/// Main view where user can login in using Email Link Authentication.
struct ContentView: View {
  @State private var email: String = ""
  @State private var isPresentingSheet = false

  var body: some View {

    NavigationView {
      VStack(alignment: .leading) {
        Text("Authenticate users with only their email, no password required!")

  }

  private func passwordlessSignIn(email: String, link: String,
                                  completion: @escaping (Result<User?, Error>) -> Void) {
    Auth.auth().signIn(withEmail: email, link: link) { result, error in
      if let error = error {
        print("ⓧ Authentication error: \(error.localizedDescription).")
        completion(.failure(error))
      } else {
        print("✔ Authentication was successful.")
        completion(.success(Auth.auth().currentUser))
      }
    }
  }
}
