We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents be806f7 + d8b6ef6 commit 9ce238aCopy full SHA for 9ce238a
Sources/KIF/Additions/UIView-KIFAdditions.m
@@ -385,7 +385,10 @@ - (UIAccessibilityElement *)accessibilityElementMatchingBlock:(BOOL(^)(UIAccessi
385
[collectionView layoutIfNeeded];
386
cell = [collectionView cellForItemAtIndexPath:indexPath];
387
}
388
- NSAssert(cell, @"UICollectionViewCell returned from 'cellForItemAtIndexPath' is unexpectedly nil!");
+ // Skip this cell if it can't be found
389
+ if (!cell) {
390
+ continue;
391
+ }
392
UIAccessibilityElement *element = [cell accessibilityElementMatchingBlock:matchBlock notHidden:NO disableScroll:NO];
393
394
// Skip this cell if it isn't the one we're looking for
0 commit comments