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

Node TintColor Tweaks #1666

Merged
merged 4 commits into from
Sep 11, 2019
Merged

Node TintColor Tweaks #1666

merged 4 commits into from
Sep 11, 2019

Conversation

bolsinga
Copy link
Contributor

@bolsinga bolsinga commented Sep 9, 2019

  • If the tint color changes, be sure to call -setNeedsDisplay on the view.
  • Explictly declare tintColor ivar and getter method.
  • If the tintColor is the same as the existing one, early-exit.
  • Use the ivar and not the property when setting the tintColor, just as is done for background color.
  • Add tests that the tintColor will call -setNeedsDisplay
  • Backfill tests to document/verify the tintColor behavior on a node.

- If the tint color changes, be sure to call -setNeedsDisplay on the view.
- Explictly declare tintColor ivar and getter method.
- If the tintColor is the same as the existing one, early-exit.
- Use the ivar and not the property when setting the tintColor, just as is done for background color.
- Add tests that the tintColor will call -setNeedsDisplay
- Backfill tests to document/verify the tintColor behavior on a node.
@bolsinga bolsinga merged commit 492da8a into master Sep 11, 2019
@bolsinga bolsinga deleted the TweakTintColor branch September 12, 2019 03:18
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.

None yet

2 participants