Skip to content

Fix inserting a sublayer in an index of NSNotFound#80

Closed
maicki wants to merge 1 commit into
masterfrom
MSFixInsertingLayerWrongPosition
Closed

Fix inserting a sublayer in an index of NSNotFound#80
maicki wants to merge 1 commit into
masterfrom
MSFixInsertingLayerWrongPosition

Conversation

@maicki

@maicki maicki commented Apr 27, 2017

Copy link
Copy Markdown
Contributor

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