Thank you iamCR! I was also having similar issues with a collection view inside a collection view cell. Layout size tended to be initially correct but upon rotating two times, the size of the layout would be broken. Adding the collection view to the content view and adding autolayout constraints to it did the trick. Tested on iOS 15 *