# ChatLayoutAttributes

    public final class ChatLayoutAttributes : UICollectionViewLayoutAttributes

Custom implementation of `UICollectionViewLayoutAttributes`

- `alignment`

  Alignment of the current item. Can be changed within `UICollectionViewCell.preferredLayoutAttributesFitting(...)`

  #### Declaration

  Swift

      public var alignment: ChatItemAlignment

- `interItemSpacing`

  Inter item spacing. Can be changed within `UICollectionViewCell.preferredLayoutAttributesFitting(...)`

  #### Declaration

  Swift

      public var interItemSpacing: CGFloat

- `additionalInsets`

  `CollectionViewChatLayout`s additional insets setup using `ChatLayoutSettings`. Added for convenience.

  #### Declaration

  Swift

      public internal(set) var additionalInsets: UIEdgeInsets { get }

- `viewSize`

  `UICollectionView`s frame size. Added for convenience.

  #### Declaration

  Swift

      public internal(set) var viewSize: CGSize { get }

- `adjustedContentInsets`

  `UICollectionView`s adjusted content insets. Added for convenience.

  #### Declaration

  Swift

      public internal(set) var adjustedContentInsets: UIEdgeInsets { get }

- `visibleBoundsSize`

  `CollectionViewChatLayout`s visible bounds size excluding `adjustedContentInsets`. Added for convenience.

  #### Declaration

  Swift

      public internal(set) var visibleBoundsSize: CGSize { get }

- `layoutFrame`

  `CollectionViewChatLayout`s visible bounds size excluding `adjustedContentInsets` and `additionalInsets`. Added for convenience.

  #### Declaration

  Swift

      public internal(set) var layoutFrame: CGRect { get }

- `copy(with:)`

  Returns an exact copy of `ChatLayoutAttributes`.

  #### Declaration

  Swift

      public override func copy(with zone: NSZone? = nil) -> Any

- `isEqual(_:)`

  Returns a Boolean value indicating whether two `ChatLayoutAttributes` are considered equal.

  #### Declaration

  Swift

      public override func isEqual(_ object: Any?) -> Bool

- `kind`

  `ItemKind` represented by this attributes object.

  #### Declaration

  Swift

      public var kind: ItemKind { get }