I decided to replace the old CMGridView library with native platform components (in particular, UICollectionView ). CMGridView had a remarkable layoutStrategy property that could have a value in the form of a GMGridViewLayoutHorizontalPagedStrategy class GMGridViewLayoutHorizontalPagedStrategy . When this turned out page by page container. I need to get this behavior for a UICollectionView . I tried to set the pagingEnabled property to true , but the behavior is completely different - there are pieces of cells on each page that do not fit onto the page. Is there any simple solution to this problem? I do not want to spend time on the implementation of this manually.

  • Try to remove padding in the settings on the right "pagingEnabled = false". - Orest Mykha
  • @OrestMykha I can not find the padding property, is it necessary to edit it? - Roman Podymov
  • When you see the CollectionView on the right side of the storyboard on the fourth tab scrollView - Orest Mykha
  • @OrestMykha I tried to do what you advised, but unfortunately it did not help me. I am now trying to do the following - each page is presented as a separate section and for it to calculate the gaps between rows and columns in the UICollectionView (as well as the size of the edges). It seems to me that this idea is far from the best, but nothing else comes to mind, and time is running out. - Roman Podymov

0