Check out example codes for "swift store enum case string values in firebase". It will help you in understanding the concepts better.

Code Example 1

enum LoginProvider: String {
  case Facebook = "facebook"
  case Email = "email"
  case Google = "google"
  case Twitter = "twitter"
}

let provider = LoginProvider.init(rawValue: "email")

Learn ReactJs, React Native from akashmittal.com