Iglistkit: Scrolling is slightly choppy

Created on 14 Nov 2017  路  3Comments  路  Source: Instagram/IGListKit

I integrated IGListKit into an app but the scrolling is slightly choppy/jerky, even after all the cells have loaded. This "choppiness" wasn't an issue when just using UICollectionView. The sizes of the cells are all constant. Suggestions?

New issue checklist

General information

  • IGListKit version: 3.1.1
  • iOS version(s): 10.1.1
  • CocoaPods/Carthage version: 1.3.1
  • Xcode version: 9.0.1
  • Devices/Simulators affected: No
  • Reproducible in the demo project? (Yes/No):
  • Related issues:
missing-info question

Most helpful comment

@jlanesmith image loading is beyond the scope of what IGListKit does (trying to keep the lib very focused). Some thoughts:

  • Make sure all of your loading is happening off of the main queue
  • Look into libraries that do image loading, my fav is SDWebImage
  • Here's a more complicated example used in GitHawk

You could look into the "working range" example in our demos app and see if that's useful, though I'd only recommend prefetching media once you really need it.

All 3 comments

@jlanesmith have you run Time Profiler to see what the issue is?

Sent with GitHawk

In the cellForItem() function, each cell needs to load several images, which takes time. Is there anything that IGListKit can do to improve this?

@jlanesmith image loading is beyond the scope of what IGListKit does (trying to keep the lib very focused). Some thoughts:

  • Make sure all of your loading is happening off of the main queue
  • Look into libraries that do image loading, my fav is SDWebImage
  • Here's a more complicated example used in GitHawk

You could look into the "working range" example in our demos app and see if that's useful, though I'd only recommend prefetching media once you really need it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PhilCai1993 picture PhilCai1993  路  3Comments

jessesquires picture jessesquires  路  3Comments

lucabartoletti picture lucabartoletti  路  3Comments

jessesquires picture jessesquires  路  3Comments

rnystrom picture rnystrom  路  3Comments