Swift#3 Enumeration

  • Enumeration(Enums) in swift are much more powerful than Objective C.
  • Unlike Obj C, Swift enums can assign strings, characters or floats as values for each member besides integers.
  • The Convenient toRaw() method returns the values assigned to each member.
  • Enums can also be parameterized (give or assign values to it.)
  • Swift structs can have method and are passed by value.