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

Fixes recursion of redraw #1

Merged
merged 1 commit into from
Apr 12, 2018
Merged

Conversation

simonmitchell
Copy link
Contributor

This fixes an issue where in Swift 4.1 the didSet method of data method was called continuously if any of the code the redraw calls mutates anything in the array of data items, see swift bug report here.

This is fairly simple to fix by having the public data property being a calculated var which uses an internal private equivalent used by the methods in CollectionViewController.

It's possible we will be able to undo this change in a later version of swift.

@simonmitchell simonmitchell changed the base branch from master to develop April 11, 2018 13:54
@simonmitchell simonmitchell merged commit 13aed4a into develop Apr 12, 2018
@simonmitchell simonmitchell deleted the fix/swift_4.1_reccursion branch April 12, 2018 10:27
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