• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Instagram / IGListKit / 6497384128
96%
master: 100%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 12 Oct 2023 03:03PM UTC
Jobs 1
Files 48
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Oct 2023 02:55PM UTC coverage: 100.0%. Remained the same
6497384128

push

github

facebook-github-bot
Fix re-entrance + caching when using IGListCollectionViewLayout

Summary:
The issue I've been seeing is that list kit would not recalculate layout for when collection view bounds would change

IGListCollectionViewLayout has code to invalidate layout when collection view size chances however it would not happen without explicitly calling `….collectionViewLayout invalidateLayout];`

It appears that in the loop of calculating the layout we would accidentally call the code that would start caching existing layout data (not calculated at the point of call) and cache the value

This does not seem to happen all the time, however moving the cache purge to the end of layout calculation loop seems reasonable since at this point we have the new values that can't be known to the cache

As long as the consumer uses `IGListCollectionViewLayout` explicitly or implicitly through convenience initialize of `IGListCollectionView` this fix should work as is

Reviewed By: fabiomassimo

Differential Revision: D50197736

fbshipit-source-id: cb6d818f8

3 of 3 new or added lines in 1 file covered. (100.0%)

4144 of 4144 relevant lines covered (100.0%)

747.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 iOS - 6497384128.1 12 Oct 2023 03:03PM UTC 0
100.0
GitHub Action Run
Source Files on build 6497384128
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #6497384128
  • d220f8a7 on github
  • Prev Build on main (#6492149170)
  • Next Build on main (#6515925152)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc