mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-09 04:46:35 +10:00
ChatRightAudioCell detail
This commit is contained in:
@@ -705,7 +705,7 @@ class ConversationViewController: BaseViewController {
|
||||
conversationCollectionView.registerClass(ChatRightAudioCell.self, forCellWithReuseIdentifier: chatRightAudioCellIdentifier)
|
||||
|
||||
conversationCollectionView.registerClass(ChatLeftVideoCell.self, forCellWithReuseIdentifier: chatLeftVideoCellIdentifier)
|
||||
conversationCollectionView.registerClass(ChatRightVideoCell.self, forCellWithReuseIdentifier: chatRightAudioCellIdentifier)
|
||||
conversationCollectionView.registerClass(ChatRightVideoCell.self, forCellWithReuseIdentifier: chatRightVideoCellIdentifier)
|
||||
|
||||
conversationCollectionView.registerClass(ChatLeftLocationCell.self, forCellWithReuseIdentifier: chatLeftLocationCellIdentifier)
|
||||
conversationCollectionView.registerClass(ChatRightLocationCell.self, forCellWithReuseIdentifier: chatRightLocationCellIdentifier)
|
||||
|
||||
@@ -47,7 +47,8 @@ class ChatRightAudioCell: ChatRightBaseCell {
|
||||
|
||||
lazy var audioDurationLabel: UILabel = {
|
||||
let label = UILabel()
|
||||
label.textColor = UIColor.blackColor()
|
||||
label.textAlignment = .Center
|
||||
label.textColor = UIColor.whiteColor()
|
||||
return label
|
||||
}()
|
||||
|
||||
@@ -165,6 +166,11 @@ class ChatRightAudioCell: ChatRightBaseCell {
|
||||
audioDurationLabel.text = ""
|
||||
}
|
||||
|
||||
bubbleImageView.frame = audioContainerView.bounds
|
||||
playButton.frame = CGRect(x: 6, y: 5, width: 30, height: 30)
|
||||
sampleView.frame = CGRect(x: 41, y: 0, width: audioContainerView.bounds.width - 60, height: audioContainerView.bounds.height)
|
||||
audioDurationLabel.frame = sampleView.frame
|
||||
|
||||
if let audioPlayer = YepAudioService.sharedManager.audioPlayer {
|
||||
if audioPlayer.playing {
|
||||
if let playingMessage = YepAudioService.sharedManager.playingMessage {
|
||||
|
||||
Reference in New Issue
Block a user