tvOS tableView scroll smooth from cell to cell

571 views Asked by At

In my tvOS-app I use a tableView with custom cells. If the cell is higher than the TV-screen it will show the "center-part" of the cell (top and bottom are not visible) and scrolling up or down will center the cell above or below. Is it possible and if, how, to change the "jumping" from cell to cell to a smooth scrolling like in iOS?

2

There are 2 answers

1
Wain On

You should limit your cells to use a fixed height for a few lines of text and show focus. When a user selects one of the cells you can then expand / zoom / transition to show the whole text is a specific scrollable text view. This interface maintains the users understanding of content, lists and block text.

1
Christian On

Just found the solution. Knowing what to search could be an advantage ;-)

Adding this simple line gives me the handling like in iOS:

self.tableView.panGestureRecognizer.allowedTouchTypes = @[@(UITouchTypeIndirect)];