Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suffix generation #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joelparsons
Copy link
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