UICollectionViewDelegateFlowLayout

· 🍎swift
cell의 넓이는 고정값으로 줄 수 있지만 높이는 내용에 따라 동적으로 할당 받아야하는데 어떻게 해야할지 뒤적뒤적이다 UICollectionViewDelegateFlowLayout라는 protocol이 있다는 것을 발견 요놈을 활용해 동적 높이를 할당해보자 공식문서 UICollectionViewDelegateFlowLayout The methods that let you coordinate with a flow layout object to implement a grid-based layout. The methods of this protocol define the size of items and the spacing between items in the grid. 공식문서를 요약하면 이렇게 나온다. 즉..