Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supplementary view yOffset change when performing updates #1515

Open
2 tasks done
hendy-evan opened this issue Jun 24, 2021 · 0 comments
Open
2 tasks done

Supplementary view yOffset change when performing updates #1515

hendy-evan opened this issue Jun 24, 2021 · 0 comments

Comments

@hendy-evan
Copy link

hendy-evan commented Jun 24, 2021

New issue checklist

  • I have reviewed the README and documentation
  • I have searched existing issues and this is not a duplicate
  • [] I have attempted to reproduce the issue and include an example project.

General information

  • IGListKit version: 4.0.0
  • iOS version(s): 12.0
  • CocoaPods/Carthage version: 1.10.1
  • Xcode version: 12.2
  • Devices/Simulators affected: iPhone 7 Simulator
  • Reproducible in the demo project? (Yes/No):
  • Related issues:

I'm using supplementaryView header for my section. Everytime customer scroll to bottom, it will make a request to API to do a pagination. After get data from API, the section are reload using :

collectionContext?.performBatch(animated: false, updates: { (batchContext) in
	batchContext.reload(self)
})

and after that, the adapter are reloaded too using performUpdates, because it have to update it's new height.
Every time the section reloaded, my header are stuck to bottom and sometimes it's like i have a header and footer, and then going back to top after reload section is finished. Are there any way to prevent this?

before reload :
Screen Shot 2021-06-24 at 22 17 01

on process reload section after get data from API :
Screen Shot 2021-06-24 at 22 17 05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant