UICollectionView – UICollectionViewFlowLayout 平成30年3月30日(金曜日) How to set cell spacing and UICollectionView – UICollectionViewFlowLayout size ratio? Swift: How to refresh UICollectionView layout after rotation of the device