I'm creating a full screen image gallery using a UICollectionView. When the user rotates the device, I perform updates to …