MessageSizeCalculator
open class MessageSizeCalculator: CellSizeCalculator
Undocumented
-
Undocumented
Declaration
Swift
public init(layout: MessagesCollectionViewFlowLayout? = nil)
-
Undocumented
Declaration
Swift
public var incomingAvatarSize = CGSize(width: 30, height: 30)
-
Undocumented
Declaration
Swift
public var outgoingAvatarSize = CGSize(width: 30, height: 30)
-
Undocumented
Declaration
Swift
public var incomingAvatarPosition = AvatarPosition(vertical: .cellBottom)
-
Undocumented
Declaration
Swift
public var outgoingAvatarPosition = AvatarPosition(vertical: .cellBottom)
-
Undocumented
Declaration
Swift
public var incomingMessagePadding = UIEdgeInsets(top: 0, left: 4, bottom: 0, right: 30)
-
Undocumented
Declaration
Swift
public var outgoingMessagePadding = UIEdgeInsets(top: 0, left: 30, bottom: 0, right: 4)
-
Undocumented
Declaration
Swift
public var incomingCellTopLabelAlignment = LabelAlignment(textAlignment: .center, textInsets: .zero)
-
Undocumented
Declaration
Swift
public var outgoingCellTopLabelAlignment = LabelAlignment(textAlignment: .center, textInsets: .zero)
-
Undocumented
Declaration
Swift
public var incomingMessageTopLabelAlignment = LabelAlignment(textAlignment: .left, textInsets: UIEdgeInsets(left: 42))
-
Undocumented
Declaration
Swift
public var outgoingMessageTopLabelAlignment = LabelAlignment(textAlignment: .right, textInsets: UIEdgeInsets(right: 42))
-
Undocumented
Declaration
Swift
public var incomingMessageBottomLabelAlignment = LabelAlignment(textAlignment: .left, textInsets: UIEdgeInsets(left: 42))
-
Undocumented
Declaration
Swift
public var outgoingMessageBottomLabelAlignment = LabelAlignment(textAlignment: .right, textInsets: UIEdgeInsets(right: 42))
-
Declaration
Swift
open override func configure(attributes: UICollectionViewLayoutAttributes)
-
Declaration
Swift
open override func sizeForItem(at indexPath: IndexPath) -> CGSize
-
Undocumented
Declaration
Swift
open func cellContentHeight(for message: MessageType, at indexPath: IndexPath) -> CGFloat
-
Undocumented
Declaration
Swift
public func avatarPosition(for message: MessageType) -> AvatarPosition
-
Undocumented
Declaration
Swift
public func avatarSize(for message: MessageType) -> CGSize
-
Undocumented
Declaration
Swift
public func cellTopLabelSize(for message: MessageType, at indexPath: IndexPath) -> CGSize
-
Undocumented
Declaration
Swift
public func cellTopLabelAlignment(for message: MessageType) -> LabelAlignment
-
Undocumented
Declaration
Swift
public func messageTopLabelSize(for message: MessageType, at indexPath: IndexPath) -> CGSize
-
Undocumented
Declaration
Swift
public func messageTopLabelAlignment(for message: MessageType) -> LabelAlignment
-
Undocumented
Declaration
Swift
public func messageBottomLabelSize(for message: MessageType, at indexPath: IndexPath) -> CGSize
-
Undocumented
Declaration
Swift
public func messageBottomLabelAlignment(for message: MessageType) -> LabelAlignment
-
Undocumented
Declaration
Swift
public func messageContainerPadding(for message: MessageType) -> UIEdgeInsets
-
Undocumented
Declaration
Swift
open func messageContainerSize(for message: MessageType) -> CGSize
-
Undocumented
Declaration
Swift
open func messageContainerMaxWidth(for message: MessageType) -> CGFloat
-
Undocumented
Declaration
Swift
public var messagesLayout: MessagesCollectionViewFlowLayout