Dynamic UICollectionViewCell size and Device Orientation
![](https://holyswift.app/wp-content/uploads/2022/07/Screenshot-2022-07-11-at-08.24.18-1024x522.png)
Hello my people, Leo Here. Today I’ll show you how to set a dynamic size of a UICollectionViewCell based on device orientation. It’s simple but requires a little bit of lifecycle understanding. To achieve that, you will manipulate the *willTransition* method inside your UIViewController. Using UICollectionViewCells can be very easy and intuitive, but things begin to […]