我想在UICollectionViewCells上显示3秒,或者8秒,就像潜望镜如何在livestream中淡出信息一样。下面是我代码的相关部分:
override func cellForItem(at index: Int) -> UICollectionViewCell {
// ...
// Get the time interval since the message was posted
let timeInterval = 11 - Date().timeIntervalSince(message.timestamp)
// If wit