mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Enhancement/add another bottom label to the cell (#920)
* Rename cell bottom label stuff which actually conforms to message bottom label stuff
* Add cell bottom label methods for flow layout, data source and delegates
* Add vars for cell bottom label alignment and size
* Add cell bottom label into message content cell and set layout for label
* Set attributes for cell bottom label
Add cell bottom label attributes into calculation of cell content height
* Update example project to display cell bottom label
* Set avatar position to messageBottom in example project to display avatar with cell bottom label more pleasant (cosmetic change)
* Revert "Set avatar position to messageBottom in example project to display avatar with cell bottom label more pleasant (cosmetic change)"
This reverts commit d8d215518a.
* Fix comment to capitalize word
* Add cell bottom label after message bottom label in message content cell
* Update changelog
* Calculate Y position of cell bottom label as max Y position of message bottom label
* Move layout calculation of cell bottom label after layout calculation of message bottom label (because layout calculation of cell bottom label depends on layout calculation of message bottom label now)
* Update breaking changes in changelog
This commit is contained in:
committed by
Steven Deutsch
parent
4b14db10db
commit
32ecab3066
@@ -107,6 +107,10 @@ extension BasicExampleViewController: MessagesLayoutDelegate {
|
||||
return 18
|
||||
}
|
||||
|
||||
func cellBottomLabelHeight(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> CGFloat {
|
||||
return 17
|
||||
}
|
||||
|
||||
func messageTopLabelHeight(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> CGFloat {
|
||||
return 20
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user