Collection view cell gets unhighlighted automatically after roughly 0.5 sec when using UICollectionViewController

Originator:Daniel.Rutkovsky
Number:rdar://FB7633299 Date Originated:20. 3. 2020
Status:Open Resolved:
Product:iOS / UIKit Product Version:13
Classification:Incorrect/Unexpected Behavior Reproducible:Yes
 
The problem is that UICollectionViewCell gets automatically unhighlighted after roughly 0.5 sec even. 
This happens only if:
- iOS 13
- using `isHighlighted` property of UICollectionViewCell or  functions `collectionView(_, didHighlightItemAt:), collectionView(_, didUnhighlightItemAt:)` of the UICollectionViewDelegate 
- the collection view is implemented using UICollectionViewController 
- UICollectionViewDiffableDataSource is used

When `UIViewController` is used instead of `UICollectionViewController`, everything works properly.
When `reloadData()` is used instead of `UICollectionViewDiffableDataSource.apply()`, everything works properly.

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!