ChatLayoutPositionSnapshot

public struct ChatLayoutPositionSnapshot : Hashable, Sendable

Represents content offset position expressed by the specific item and it offset from the top or bottom edge.

  • Represents the edge.

    See more

    Declaration

    Swift

    public enum Edge : Hashable, Sendable
  • Item’s IndexPath

    Declaration

    Swift

    public var indexPath: IndexPath
  • Kind of item at the indexPath

    Declaration

    Swift

    public var kind: ItemKind
  • The edge of the offset.

    Declaration

    Swift

    public var edge: Edge
  • The offset from the edge.

    Declaration

    Swift

    public var offset: CGFloat
  • Constructor

    Declaration

    Swift

    public init(
        indexPath: IndexPath,
        kind: ItemKind,
        edge: Edge,
        offset: CGFloat = 0
    )

    Parameters

    indexPath

    Item’s IndexPath

    edge

    The edge of the offset.

    offset

    The offset from the edge.

    kind

    Kind of item at the indexPath