mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
pull out BasicAudioController from MessageKit framework
This commit is contained in:
@@ -102,6 +102,10 @@ extension BasicExampleViewController: MessagesDisplayDelegate {
|
||||
func audioTintColor(for message: MessageType, at indexPath: IndexPath, in messagesCollectionView: MessagesCollectionView) -> UIColor {
|
||||
return isFromCurrentSender(message: message) ? .white : UIColor(red: 15/255, green: 135/255, blue: 255/255, alpha: 1.0)
|
||||
}
|
||||
|
||||
func configureAudioCell(_ cell: AudioMessageCell, message: MessageType) {
|
||||
audioController.configureAudioCell(cell, message: message) // this is needed especily when the cell is reconfigure while is playing sound
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user