Instagram / IGListKit

A data-driven UICollectionView framework for building fast and flexible lists.
https://instagram.github.io/IGListKit/
MIT License
12.84k stars 1.54k forks source link

tvOS Nested Adapter example doesn't keep offset #1292

Open rafalszastok opened 5 years ago

rafalszastok commented 5 years ago

New issue checklist

General information

Debug information

Open tvOS example. Change NestedAdapterViewController field data to:

let data: [Any] = [
        "Most Recent",
        20,
        "Recently Watched",
        16,
        "New Arrivals",
        30,
        "New Arrivals",
        10,
        "New Arrivals",
        50
    ]

Steps:

  1. Scroll to the end on Most Recent HorizontalSectionController.
  2. Scroll to the bottom. Expected: See 1st item on every HorizontalSectionController. What happens: Some HorizontalSectionController that appear on screen has the same offset as first collection view.

NOTE: Preserving contentOffset won't work, since focused item is also held by collectionView. The offset will be automatically updated to different position, when you scroll fast vertically.

rafalszastok commented 5 years ago

Is there any chance this issue will be prioritised and fixed?

snoozemoose commented 5 years ago

@rafalszastok I'm having the very same problem and was hoping that a migration to IGListKit could fix this issue :-/. Have you tried to use UICollectionView's preferredIndexPath delegate function? I was near a working solution using this delegate function but had some other problems that I was hoping could be fixed by migrating to IGListKit.