Closed frranck closed 8 years ago
Thanks for the issue!
We improved the copyView()
method in version 0.5, could you try to check if it happens on this version as well?
@sunshinejr I'm using the 0.5
Oh right, the copyView()
method can't really copy CALayer. You can use our itemsFactory()
method, we introduced it after #11 in version 0.5. Here is an example. Sorry for the inconvenience!
@sunshinejr I'm not using it; but I suspect the problem is coming because the library using it line 104 .
@frranck yes, the copyView()
method does the copy of view because the views are passed it in the array. When you pass it in the closure (and make a new view in it) using itemsFactory()
, the views can be created from the recipe rather than copy it, which allows you to copy not only the view, but also models & objects (like view models or CALayer
).
@sunshinejr Thanks for the input
Hi; I noticed some of the carousel cells don't have their cornerRadius set properly; I can see them with proper corners once; but when you keep scrolling I'm seeing the same cells with no cornerRadius. Could that be an issue with the copyView function ?