Skip to content

Conversation

@Iron-Ham
Copy link
Contributor

@Iron-Ham Iron-Ham commented Apr 10, 2017

Changes in this pull request

Issue fixed: #618

Checklist

  • All tests pass. Demo project builds and runs.
  • I added tests, an experiment, or detailed why my change isn't tested.
  • I added an entry to the CHANGELOG.md for any breaking changes, enhancements, or bug fixes.
  • I have reviewed the contributing guide

Copy link
Contributor

@jessesquires jessesquires left a 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
}
}
Copy link
Contributor

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
    }
}

Copy link
Contributor Author

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 👍

@facebook-github-bot
Copy link
Contributor

@heshamsalman updated the pull request - view changes

Copy link
Contributor

@jessesquires jessesquires left a 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 ! 🎉

@facebook-github-bot
Copy link
Contributor

@jessesquires has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scope example variables (fileprivate, etc)

3 participants