ChatLayoutAttributes
public final class ChatLayoutAttributes : UICollectionViewLayoutAttributes
Custom implementation of UICollectionViewLayoutAttributes
-
Alignment of the current item. Can be changed within
UICollectionViewCell.preferredLayoutAttributesFitting(...)
Declaration
Swift
public var alignment: ChatItemAlignment
-
Inter item spacing. Can be changed within
UICollectionViewCell.preferredLayoutAttributesFitting(...)
Declaration
Swift
public var interItemSpacing: CGFloat
-
CollectionViewChatLayout
s additional insets setup usingChatLayoutSettings
. Added for convenience.Declaration
Swift
public internal(set) var additionalInsets: UIEdgeInsets { get }
-
UICollectionView
s frame size. Added for convenience.Declaration
Swift
public internal(set) var viewSize: CGSize { get }
-
UICollectionView
s adjusted content insets. Added for convenience.Declaration
Swift
public internal(set) var adjustedContentInsets: UIEdgeInsets { get }
-
CollectionViewChatLayout
s visible bounds size excludingadjustedContentInsets
. Added for convenience.Declaration
Swift
public internal(set) var visibleBoundsSize: CGSize { get }
-
CollectionViewChatLayout
s visible bounds size excludingadjustedContentInsets
andadditionalInsets
. Added for convenience.Declaration
Swift
public internal(set) var layoutFrame: CGRect { get }
-
Returns an exact copy of
ChatLayoutAttributes
.Declaration
Swift
public override func copy(with zone: NSZone? = nil) -> Any
-
Returns a Boolean value indicating whether two
ChatLayoutAttributes
are considered equal.Declaration
Swift
public override func isEqual(_ object: Any?) -> Bool