Add document

This commit is contained in:
amir pirzad
2020-09-03 12:42:20 +04:30
parent d2b87770c9
commit c6bfdba900
4 changed files with 1 additions and 40 deletions
@@ -278,20 +278,6 @@ final class AdvancedExampleViewController: ChatViewController {
}
return nil
}
override func messageTimestampLabelAttributedText(for message: MessageType, at indexPath: IndexPath) -> NSAttributedString? {
let sentDate = message.sentDate
let sentDateString = MessageKitDateFormatter.shared.string(from: sentDate)
let timeLabelFont: UIFont = .boldSystemFont(ofSize: 10)
let timeLabelColor: UIColor
if #available(iOS 13, *) {
timeLabelColor = .systemGray
} else {
timeLabelColor = .darkGray
}
return NSAttributedString(string: sentDateString, attributes: [NSAttributedString.Key.font: timeLabelFont, NSAttributedString.Key.foregroundColor: timeLabelColor])
}
}
// MARK: - MessagesDisplayDelegate