Adaptive Layout and UICollectionView in Swift
['Benoit Pasquier']
Benoit Pasquier - Swift, Data and more
Devices First Header Second Header iPad Portrait Regular Regular iPad Landscape Regular Regular iPhone Portrait Compact Regular iPhone Landscape Compact Compact enum CollectionDisplay { case inline case list case grid ( columns : Int ) } The reason is simple: to display a list or a grid, only the width constraint the element to be displayed.