kelvinlauKL / FirebaseLogin

Demonstrates a barebones authentication code for Firebase.
16 stars 3 forks source link

FirebaseLogin

Demonstrates a barebones login screen using Firebase. Firebase is a backend solution managed by the folks at Google.

login screen

Server.swift

The Server.swift file contains a barebones Server enum:

enum Server {}

In the spirit of modular code, everything that communicates with the Firebase backend will be in the namespace of the Server enum.

Server+Auth.swift

The Server+Auth.swift file manages the communication between the app and Firebase for authentication. This is an extension of the Server enum, with the sole responsibility of handling the authentication.


Friendly reminder to open the xcworkspace file if you want to run this project. This project uses Cocoapods to manage dependencies.