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

Property Naming #6

Open
markavitale opened this issue Jun 5, 2020 · 0 comments
Open

Property Naming #6

markavitale opened this issue Jun 5, 2020 · 0 comments
Labels
proposed convention A new convention for the guidelines

Comments

@markavitale
Copy link
Contributor

markavitale commented Jun 5, 2020

Convention

  • First letter should be lower case
  • Use camel case
  • No underscores
  • BOOL properties have special names (e.g., setHidden & isHidden:)
  • Getters don't begin with the word "get"
  • Setters do begin with the word "set"
  • Category Properties - point to the existing category naming section

Rationale

Matches Apple's recommendations and style

Example

TBD

@markavitale markavitale added the proposed convention A new convention for the guidelines label Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposed convention A new convention for the guidelines
Projects
None yet
Development

No branches or pull requests

1 participant