-[UICollectionView layoutAttributesForItemAtIndexPath:] return an empty frame for selected items

Originator:avedesk
Number:rdar://47313569 Date Originated:16-Jan-2019 01:20 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:12.1.1
Classification:Serious Bug Reproducible:Always
 
Summary:
-[UICollectionView layoutAttributesForItemAtIndexPath:] returns a (0,0,0,0) frame for selected items. When the cell gets deselected, the the frame has the correct value for the item.

Steps to Reproduce:
1. Have a UICollectionView
2. select an item
3. While the item is selected, call -[UICollectionView layoutAttributesForItemAtIndexPath:] with the indexPath of the selected item

Expected Results:
The frame of the returned UICollectionViewLayoutAttributes is correct

Actual Results:
The frame of the of the returned UICollectionViewLayoutAttributes is always CGRectZero

Version:
12.1.1

Notes:
Don't ask for a sysdiagnose, that has nothing to do. This is an implementation bug

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!