ChatLayoutSettings
public struct ChatLayoutSettings : Equatable, Sendable
CollectionViewChatLayout settings.
-
Estimated item size for
CollectionViewChatLayout. This value will be used as the initial size of the item and the final size will be calculated usingUICollectionViewCell.preferredLayoutAttributesFitting(...).Declaration
Swift
public var estimatedItemSize: CGSize? -
Spacing between the items in the section.
Declaration
Swift
public var interItemSpacing: CGFloat -
Spacing between the sections.
Declaration
Swift
public var interSectionSpacing: CGFloat -
Additional insets for the
CollectionViewChatLayoutcontent.Declaration
Swift
public var additionalInsets: UIEdgeInsets -
When set to a valid cell index path,
CollectionViewChatLayoutreports additional vertical content size so that the specified cell can scroll all the way to the top edge of the layout viewport.Declaration
Swift
public var indexPathForExtendedLayout: IndexPath?