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 using UICollectionViewCell.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 CollectionViewChatLayout content.

    Declaration

    Swift

    public var additionalInsets: UIEdgeInsets
  • When set to a valid cell index path, CollectionViewChatLayout reports 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?