Skip to content

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.

2 participants