krzyzanowskim / Natalie

Natalie - Storyboard Code Generator (for Swift)
http://blog.krzyzanowskim.com/2015/04/15/natalie-storyboard-code-generator/
MIT License
1.17k stars 74 forks source link

Genre only ids #67

Closed kostiakoval closed 7 years ago

kostiakoval commented 9 years ago

I want to get only ids without any extra functionality. It would be awesome if there would be some option for that.

Here is what I want

struct Storyboards {
  struct Main {
    enum ids: String {
      case Login
      case Done
      case Location
      case Contacts
      case Hello
    }
  }
}
kostiakoval commented 9 years ago

New feature quest :)

krzyzanowskim commented 9 years ago

ids of what, everything?

kostiakoval commented 9 years ago

All the ids (ViewControllers, Cells, Segue) from storyboards but well structured I'm not sure how the code should be structured, Maybe all ids should be in 1 top level or nested into a related ViewConttroller.

The main idea is that I wan't just ids in a simple file, with out any extra functionality.

struct Storyboards {
  struct Main {
    enum ViewControllersIds: String {
      case Login
      case Done
    }

    enum CellsIds: String {
      case OneCell
      case TwoCell
    }
  }
}

Or maybe nested structure

struct Storyboards {
  struct Main {
    enum ViewControllersIds: String {
      case Login
      case Done

      enum CellsIds: String {
        case OneCell
        case TwoCell
      }
    }  
  }
}
krzyzanowskim commented 9 years ago

It's more like an array than enum, isn't it ?

kostiakoval commented 7 years ago

closing issue because of lack of activity, reopen if needed