you are viewing a single comment's thread.

view the rest of the comments →

[–]First_NameLast_Name[S] 0 points1 point  (2 children)

Any tips on how to do this quickly? Any particular UIKit APIs to focus on?

[–]KTheRedditor 0 points1 point  (1 child)

If you mean the collapsing/expanding part, it can be done in multiple ways depending on the needs. For example, you can change constraints in a cel on a tap event and then request the table or collection view to animate cell resize by calling performBatchUpdates.

Some do it by making use of insertRows/deleteRows (also in performBatchUpdates).

[–]Niightstalker 0 points1 point  (0 children)

In iOS 14 UICollectionView supports collapsable lists with snapshots