Created
May 18, 2021 16:20
-
-
Save AhmedMenaim/14804cc242a62d4847a2d2b641e71087 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import Firebase | |
enum FBCollectionReferences :String { | |
case Category | |
case Item | |
case Cart | |
case User | |
} | |
func getFBCollectionReference (collectionRefrence: FBCollectionReferences) -> CollectionReference { | |
return Firestore.firestore().collection(collectionRefrence.rawValue) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment