-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Chore/variable accessibility, close #618 #637
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
Conversation
jessesquires
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @heshamsalman ! 💯
Overall looks, only one thing to address. 😄
| didSet { | ||
| titleLabel.text = title | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm not a fan of these changes on all of the cells. the properties are redundant, and create unnecessary storage.
if we do something like this, they should be computed, not stored:
var title: String? {
get {
return titleLabel.text
}
set {
titleLabel.text = newValue
}
}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooh. I like that quite a bit better 👍
|
@heshamsalman updated the pull request - view changes |
jessesquires
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good. thanks @heshamsalman ! 🎉
|
@jessesquires has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Changes in this pull request
Issue fixed: #618
Checklist
CHANGELOG.mdfor any breaking changes, enhancements, or bug fixes.