UICollectionView layout is not always invalidated on bounds changes as of iOS 13

Originator:vmagaziy
Number:rdar://7469191 Date Originated:
Status: Resolved:
Product:iOS Product Version:iOS 13
Classification:UIKit Reproducible:iOS 13
 
This issue has to do with view controller containment: invalidation for bounds is not happening when custom view controller containing collection view:
1) uses view layout constraints and put into container view controller with layout constraints OR manual frame setting
2) put to navigation controller either directly or in a container view controller

This issue can be reproduced as of iOS 13.

For additional detail see the attached project. Run it on iOS 13 and rotate a device -- notice the collection view has proper bounds while its layout is not updated (stripes are not edge to edge).

Comments

The attached project can be found here: https://drive.google.com/open?id=1TeJGvCPaLVzBaAh7zIponnjdsC0k40Sl


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!