Chatto icon indicating copy to clipboard operation
Chatto copied to clipboard

UICollectionView layout not invalidated on device rotation

Open esilverberg opened this issue 4 years ago • 0 comments

The UICollectionView .collectionViewLayout is not being properly invalidated on a rotation. This leads to the following, easily-reproable behavior (do this on the "Empty Chat" screen of the demo app):

Screen Shot 2021-05-25 at 8 13 53 PM

The solution is fairly straightforward -- just call

collectionView.collectionViewLayout.invalidateLayout()

in the method viewWillTransition of BaseChatViewController.

esilverberg avatar May 26 '21 00:05 esilverberg