雑ですいません、自分用のメモです
何度もググってるので
Xcode11でってなってますけど、iOS13でですよね?
UICollectionViewのEstimate SizeがAutomaticになっていますが、これをNoneにします
これでUICollectionViewDelegateFlowLayoutのsize設定が効きます。
もちろんSelf-Sizingに対応してしまう手もあります(UIImageViewに縦横制約を設定する)
しかしその場合はiOS12でSelf-Sizingを使用できるようにして置かなければならないので注意しましょう。
invalidateLayoutでいけます。