mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
Merge branch '3.0.0-beta' into CustomDetectorType
This commit is contained in:
@@ -25,7 +25,6 @@
|
||||
import UIKit
|
||||
import MapKit
|
||||
import MessageKit
|
||||
import MessageInputBar
|
||||
|
||||
final class BasicExampleViewController: ChatViewController {
|
||||
|
||||
@@ -99,7 +98,17 @@ extension BasicExampleViewController: MessagesDisplayDelegate {
|
||||
|
||||
return LocationMessageSnapshotOptions(showsBuildings: true, showsPointsOfInterest: true, span: MKCoordinateSpan(latitudeDelta: 10, longitudeDelta: 10))
|
||||
}
|
||||
|
||||
// MARK: - Audio Messages
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// MARK: - MessagesLayoutDelegate
|
||||
|
||||
Reference in New Issue
Block a user