I am using messageKit. I want to add time when the message was sent inside of messageBottomLabel. However visually it is outside of message bubble.
But I want it to be inside of the bubble, like this:
How can I do it?
I am using messageKit. I want to add time when the message was sent inside of messageBottomLabel. However visually it is outside of message bubble.
But I want it to be inside of the bubble, like this:
How can I do it?
func customCell(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> UICollectionViewCell
func configure(with message: MessageType, at indexPath: IndexPath, and messagesCollectionView: MessagesCollectionView)
set label text like this:
if let dataSource = messagesCollectionView.messagesDataSource { captionLabel.text = dataSource.messageBottomLabelAttributedText(for: message, at: indexPath) } else { fatalError("Datasource is null!") }
override func messageContainerSize(for message: MessageType) -> CGSize