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

vertical & horizontal carousel, simultanious #174

Closed ghost closed 12 years ago

ghost commented 12 years ago

Hello Nick,

i am sorry for creating an issue, but i didn't find a better way to contact you. I would like to use iCarousel in a project where i need simultaneous vertical AND horizontal carousels. When the user scrolls the horisontal (main) carousel, the content of the vertical carousel should be dynamically updated, based on the currently selected (front) item in the horizontal carousel. The selected item in the horizontal and vertical carousels are basically the same item. It's kinda like a "cross" of 2 carousels, if that makes sense.

Is it currently possible to achieve this or if not, can you give some pointers as to where one would start to extend iCarousel to do this?

Thanks a lot, -r

nicklockwood commented 12 years ago

I think you probably want a carousel of carousels, if I've understood you correctly - as in, each item view in the horizontal carousel should contain another vertical carousel.

Does that sound like it would work?

ghost commented 12 years ago

Thanks for the super quick response, Nick. Yes, that would work. But in my case, optionally, i would only actually care (and show) the vertical carousel of the currently selected item in the horizontal carousel.

Can this currently be done?

Thanks, -r

nicklockwood commented 12 years ago

Yeah, I'll add an example. It's more complex than what you need, but should give you some pointers.

nicklockwood commented 12 years ago

I've added a nested carousels example. I'm aware that it's not exactly what you are trying to achieve, but take a look at it and see if it helps clarify what you need to do.

ghost commented 12 years ago

Thanks os much, Nick! That should get me started.