nicklockwood / iCarousel

A simple, highly customisable, data-driven 3D carousel for iOS and Mac OS
http://www.charcoaldesign.co.uk/source/cocoa#icarousel
Other
12k stars 2.58k forks source link

Nested Carousels makes every view lose quality #559

Open pbassut opened 9 years ago

pbassut commented 9 years ago

I used the nested carousel example and I noticed it was slowed than usual. Even though I tried to do the same. But my view is complex this time with uiimageview's, lots of labels, etc.

I'm using iOS 8.1 and Asset Catalogs.

But it somehow loses quality when using them on nested carousel. I'm posting an image with the nested carousel, and without it. Take a look:

screen shot 2014-12-14 at 19 54 51

screen shot 2014-12-14 at 19 54 28

Without nested carousels:

screen shot 2014-12-14 at 20 09 06

screen shot 2014-12-14 at 20 08 41

What could be causing this? And is there a way to fix it?

nicklockwood commented 9 years ago

Are you just using linear transforms? If so, try using SwipeView instead of iCarousel as it doesn't exhibit this problem.

pbassut commented 9 years ago

@nicklockwood How is SwipeView implementation any different from iCarousel?

I'll try that anyway.

pbassut commented 9 years ago

Geez, it worked. Why? They have the same implementation.

Is it because iCarousel handles 3D and SwipeView doesn't?

nicklockwood commented 9 years ago

Yeah, it's because iCarousel uses 3D transforms and SwipeView uses 2D affine transforms.

pbassut commented 9 years ago

Thanks veeery much!