0

is it possible to change the CollectionViewFlowLayout to CollectionViewLayout in storyboard,because i need to implement the water flow or Pinterest Layout,in examples RFQuiltLayout, BDDynamicGridViewController they written in collectionViewLayout only,in the storyboard not take this one it list only the collectionViewLayout,so it possible or not,otherwise i follow the collectionviewlayout in programatically? enter image description here

Prabakaran
  • 258
  • 2
  • 14

2 Answers2

1

i got the answer to change the CollectionViewFlowLayout to CollectionViewLayout in storyboard. swift to identify to attribute inspector,in that under the collectionView in layout you can change the flow to custom.now you use the UIViewLayout in Stroyboard like this

Attribute Inspector

enter image description here

enter image description here

Prabakaran
  • 258
  • 2
  • 14
0

Yes, you can change the class in the Identity inspector:

Identity inspector with set class

In this case, the Class dropdown will show all the classes in your project which are subclasses of UICollectionViewLayout. The only implementation which Apple ships is UICollectionViewFlowLayout, which is a powerful option, and worth considering subclassing before you create your own layout.

Josh Heald
  • 3,907
  • 28
  • 37