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

Disable backgroundColor #52

Closed
wants to merge 4 commits into from

Conversation

rzulkoski
Copy link
Contributor

Overrides the backgroundColor property inherited from UIView to be disabled.

This is in order to mimic an actual UIStackView, which is a non-drawing view, and protect users of TZStackView from becoming reliant on setting a TZStackView's background color. This should be one less surprise for users when they eventually migrate from TZStackView to UIStackView in the future.

@rzulkoski
Copy link
Contributor Author

Should have also mentioned I added .DS_Store to .gitignore.

@CosynPa
Copy link

CosynPa commented Nov 6, 2015

I think you should override the layerClass class method making it return CATransformLayer.

…ing backgroundColor property to disable setting the backgroundColor as suggested by @CosynPa
@rzulkoski
Copy link
Contributor Author

@CosynPa Great idea! I've updated the pull request accordingly.

@CosynPa
Copy link

CosynPa commented Nov 7, 2015

You can leave the backgroundColor override, without this override, you'll receive an warning when set backgroundColor.

@rzulkoski
Copy link
Contributor Author

Closing in favor of pull request #55.

@rzulkoski rzulkoski closed this Nov 12, 2015
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