|
@@ -378,8 +378,12 @@ public class EditorGroup: UIViewController {
|
|
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(dismissKeyboard))
|
|
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(dismissKeyboard))
|
|
tapGesture.cancelsTouchesInView = false
|
|
tapGesture.cancelsTouchesInView = false
|
|
tableChatView.addGestureRecognizer(tapGesture)
|
|
tableChatView.addGestureRecognizer(tapGesture)
|
|
- UIView.animate(withDuration: 0.5, animations: {
|
|
|
|
- self.tableChatView.alpha = 1.0
|
|
|
|
|
|
+ DispatchQueue.main.asyncAfter(deadline: .now() + 0.5, execute: {
|
|
|
|
+ if self.tableChatView.alpha != 1.0 {
|
|
|
|
+ UIView.animate(withDuration: 0.5, animations: {
|
|
|
|
+ self.tableChatView.alpha = 1.0
|
|
|
|
+ })
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2909,6 +2913,14 @@ extension EditorGroup: UITableViewDelegate, UITableViewDataSource {
|
|
// checkNewMessage(tableView: tableView)
|
|
// checkNewMessage(tableView: tableView)
|
|
// }
|
|
// }
|
|
|
|
|
|
|
|
+ public func tableView(_ tableView: UITableView, didEndDisplaying cell: UITableViewCell, forRowAt indexPath: IndexPath) {
|
|
|
|
+ if self.tableChatView.alpha != 1.0 {
|
|
|
|
+ UIView.animate(withDuration: 0.5, animations: {
|
|
|
|
+ self.tableChatView.alpha = 1.0
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
public func scrollViewDidScroll(_ scrollView: UIScrollView) {
|
|
public func scrollViewDidScroll(_ scrollView: UIScrollView) {
|
|
checkNewMessage(tableView: self.tableChatView)
|
|
checkNewMessage(tableView: self.tableChatView)
|
|
}
|
|
}
|