UIImageView's highlighted image doesn't work in iOS15

As the title says. I have an UIImageView and set different images on normal state and highlighted state in storyboard.
When the iOS version is below 15.0 the ImageView's image toggle according to its collectionViewCell's state which the ImageView belongs to.
BUT in iOS 15 beta4, when I set the collectionViewCell.isHighlighted = true. The ImageView's image toggle to highlighted image and switch back to image for normal state immediately.
The state of the ImageView is correct but the image it shows is incorrect. Is this knowing issue in iOS15 or there has some changed property that I missed it?

That's just an hypothesis. Could happen that iOS changes how and when some API are called. And then, what did work by chance in older iOS is now broken. We would need to see the complete code where you use CollectionView to analyse. Question: why and where do you set collectionViewCell.isHighlighted ?

Seem's like is a bug or an update related to reconfigureItems for iOS15 (At least it looks like). As a solution for your case you need to use for example: collectionView.reconfigureItems(at: collectionView.indexPathsForVisibleItems) Hope it helps

UIImageView's highlighted image doesn't work in iOS15
 
 
Q