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

Fix inserting a sublayer in an index of NSNotFound #80

Closed
wants to merge 1 commit into from

Conversation

maicki
Copy link
Contributor

@maicki maicki commented Apr 27, 2017

It can happen that the view get's loaded while _setSupernode is called. In this it's still assumed that the sublayerIndex is NSNotFound although the view is loaded now and we should have a valid sublayer index. To prevent this let's grab the sublayer index again if we discover this situation.

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.

1 participant