NijiDigital / gyro

Tool to generate Realm.io models for Swift, Java & ObjC from xcdatamodel and its visual Xcode editor
Apache License 2.0
93 stars 15 forks source link

change constants from "case" to "static let" in Attribute/Relationship enums #27

Open StevenWatremez opened 7 years ago

StevenWatremez commented 7 years ago

Currently we use :

enum Attributes: String {
  case attribute = "attribute"
}

// Usage
Attributes.attribute.rawValue

It should be better to use this following code instead :

enum Attributes {
  static let attribute: String = "attribute"
}

// Usage
Attributes.attribute