Merge branch '3.0.0-beta' into CustomDetectorType

This commit is contained in:
Nathan Tannar
2019-02-28 19:21:38 -08:00
committed by GitHub
105 changed files with 1366 additions and 289 deletions
@@ -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