-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CollectionView] Guard against a UIKit crash caused by attempting to …
…scroll to an item that no longer exists (#142) 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.
- Loading branch information
1 parent
ba0edf3
commit 9f9c93c
Showing
2 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters