Instagram / Instagram/IGListKit

Reload cell in HorizontalSectionController that is in inside ListStackedSectionController

Open
#934 5 comments 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
Objective-C
Stars
13.1k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Can you explain how road cell inside HorizontalSectionController, when HorizontalSectionController is a part of ListStackedSectionController. So basically I can get to the ListStackedSectionController, but I can't understand how to get certain HorizontalSectionController.

```
func reload(section: Int, itemIndex: Int) {
let controller = (adapter.sectionController(forSection: section) as! ListStackedSectionController)
controller.accessibilityElement(at: 1)
let context = controller.collectionContext
context?.performBatch(animated: true, updates: { (batchContext) in
//Need to get inside ListStackedSectionCOntroller
})
}
```

How can I get controller which is inside ListStackedSectionController?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.