Skip to content

Commit a6a5908

Browse files
committed
Revert .bottom change and remove arg
1 parent da54655 commit a6a5908

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Sources/Layout/MessageSizeCalculator.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ open class MessageSizeCalculator: CellSizeCalculator {
3535
public var incomingAvatarSize = CGSize(width: 30, height: 30)
3636
public var outgoingAvatarSize = CGSize(width: 30, height: 30)
3737

38-
public var incomingAvatarPosition = AvatarPosition(vertical: .messageBottom)
39-
public var outgoingAvatarPosition = AvatarPosition(vertical: .messageBottom)
38+
public var incomingAvatarPosition = AvatarPosition(vertical: .cellBottom)
39+
public var outgoingAvatarPosition = AvatarPosition(vertical: .cellBottom)
4040

4141
public var incomingMessagePadding = UIEdgeInsets(top: 0, left: 4, bottom: 0, right: 30)
4242
public var outgoingMessagePadding = UIEdgeInsets(top: 0, left: 30, bottom: 0, right: 4)
@@ -149,7 +149,7 @@ open class MessageSizeCalculator: CellSizeCalculator {
149149
return CGSize(width: messagesLayout.itemWidth, height: height)
150150
}
151151

152-
public func cellTopLabelAlignment(for message: MessageType, at indexPath: IndexPath) -> LabelAlignment {
152+
public func cellTopLabelAlignment(for message: MessageType) -> LabelAlignment {
153153
let dataSource = messagesLayout.messagesDataSource
154154
let isFromCurrentSender = dataSource.isFromCurrentSender(message: message)
155155
return isFromCurrentSender ? outgoingCellTopLabelAlignment : incomingCellTopLabelAlignment

Sources/Layout/MessagesCollectionViewLayoutAttributes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ open class MessagesCollectionViewLayoutAttributes: UICollectionViewLayoutAttribu
3030
// MARK: - Properties
3131

3232
public var avatarSize: CGSize = .zero
33-
public var avatarPosition = AvatarPosition(vertical: .messageBottom)
33+
public var avatarPosition = AvatarPosition(vertical: .cellBottom)
3434

3535
public var messageContainerSize: CGSize = .zero
3636
public var messageContainerPadding: UIEdgeInsets = .zero

0 commit comments

Comments
 (0)