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

[CollectionView] Guard against a UIKit crash caused by attempting to scroll to an item that no longer exists #142

Merged
merged 1 commit into from
Apr 19, 2023

Commits on Apr 19, 2023

  1. [CollectionView] Guard against a UIKit crash caused by attempting to …

    …scroll to an item that no longer exists
    
    Calling `scrollToItem(…)` with in invalid index path raises an exception:
    
    > NSInternalInconsistencyException: Attempted to scroll the collection view to an out-of-bounds item
    
    We must guard against this to check to ensure that this never happens, as we call this method repeatedly and the items/section may change out from under us.
    erichoracek committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    93941a3 View commit details
    Browse the repository at this point in the history