Other Classes
The following classes are available globally.
-
A collection view layout that can display items in a grid similar to
UITableView
but aligning them to the leading or trailing edge of theUICollectionView
. Helps to maintain chat like behavior by keeping content offset from the bottom constant. Can deal with autosizing cells and supplementary views.Custom Properties:
CollectionViewChatLayout.delegate
CollectionViewChatLayout.settings
CollectionViewChatLayout.keepContentOffsetAtBottomOnBatchUpdates
CollectionViewChatLayout.visibleBounds
CollectionViewChatLayout.layoutFrame
Custom Methods:
CollectionViewChatLayout.getContentOffsetSnapshot(...)
See moreCollectionViewChatLayout.restoreContentOffset(...)
Declaration
Swift
public final class CollectionViewChatLayout : UICollectionViewLayout