Hi, If number of items is zero, attemp to call `collectionView?.centeredIndexPath` will cause "divide by zero" crash instead returning **nil** Thanks.
Hi,
If number of items is zero, attemp to call
collectionView?.centeredIndexPathwill cause "divide by zero" crash instead returning nilThanks.