Implementing Firebase Authentication in SwiftUI

Hey everyone,

I’m working on a SwiftUI project and I’m trying to integrate Firebase Authentication into it. I’ve followed the documentation provided by Firebase, but I’m facing some issues.

Specifically, I’m having trouble with:

  • Setting up Firebase in my SwiftUI project correctly.
  • Implementing the login and registration functionality using Firebase Authentication.
  • Handling user authentication states and updating the UI accordingly.

I’ve searched online for solutions and tried various tutorials, but I’m still stuck. Can anyone here provide some guidance or point me in the right direction?
I also check this :

Thanks in advance!

Let’s start from step one, what have you done? Like have you added Firebase via SPM, and added the Google-Info.plist file?

If not, which parts of this are you struggling with? what errors are you getting?