There is a task to make the list "like chat". Well, that is the scroll will be from bottom to top, but at the same time I need to leave all the features of the UICollectionView . What I tried to do, I tried to use UITableView and insert into the beginning, it was very crutchy and not always beautiful + for a long time it was done on old devices. Then I tried to turn the table and everything was fine, but the animations were not beautiful (reloadSection -> it turned out that the new data was leaving up, as the table was turned, and nothing could be invented). It was decided to use UICollectionView as there, supposedly, you can adjust the Layout, but all the solutions I found, inserted the content down (and the top remained on top), I need to somehow configure this Layout so that the cells would be added from below (a la insertItemsAtIndexPaths: 0 - added down)

  • That is, you need to add a new object with index 0 to the datasource, calculate its height, redraw the table and shift it to the height of the new cell so that it visually remains there? - Max Mikheyenko
  • Yes, sort of. The behavior should be like that of an inverted collection, but in fact it should not be inverted - RrrangeTop

0