Skip to content

tvOS support #17

@snoozemoose

Description

@snoozemoose

I'm trying to add support for tvOS which is basically adding support for navigation via focus of elements. I've encountered a couple of things that I could use some help with. The first is that When I scroll down to the point where new rows are dequeued the layout goes into a loop of scrollViewDidScroll, invalidation and re-build of layout. If I comment out the code that changes the collectionView's bounds +- of 0.1 then this loop breaks. Another thing that worked was to add a guard in scrollViewDidScroll to check if the contentOffset was the same as before and then just return without invalidation of the layout. It seems that each change of the bounds also does some scrolling of the cells which causes the loop.
The other issue is related to the first and is that the rows can't scroll horizontally, regardless if the bounds nudging is used or not. I've found no workaround for this.

Any help would be appreciated :-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions