Skip to content

Suffix generation - #2

Open
joelparsons wants to merge 2 commits into
kluivers:masterfrom
joelparsons:suffix-generation
Open

joelparsons wants to merge 2 commits into
kluivers:masterfrom
joelparsons:suffix-generation

Conversation

@joelparsons

Copy link
Copy Markdown
Contributor

Ive added this as a separate pull request even though it builds on my previous one as it is more opinionated than your previous script and as such you might not want to merge it.

Either way I've kept on using this script and have also added a suffix to the different kinds of identifier

  • a segue called "detail" becomes XXXDetailSegue
  • a view controller identifier called "userScreen" becomes XXXUserScreenIdentifier
  • a cell with identifier "contactCell" becomes XXXContactCellReuseIdentifier

…easy visual identification

I found i was typing these suffixes all the time anyway so I chose to add them automatically. This makes it so that i can put "viewDetail" in the segue identifier box in IB and it gets generated as XXXViewDetailSegue in the constants, for example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant