I'm trying to implement a table view with scrollable horizontal items (with unknown number of items) like the illustration below:
The UI should behave like so:
- At the init state the table cell shows a label and some text and the circle item pops out of the right side
- If the users swipes from right to left, the label and text fades out and the horizontal list (inside the cell) takes it's place
I thought about using TableView and dequeueReusableCellWithIdentifier
and creating a prototype cell, but then I need to remember the list horizontal position and init the cell properly on cellForRowAtIndexPath
and that will probably affect performance.
Q: What layout would you use in order to achieve this goal, any input / tutorial would be appreciated