UI and theme improvements

This commit is contained in:
Ali
2021-05-21 20:42:10 +04:00
parent 8557cd629a
commit a6f39e5a77
62 changed files with 1142 additions and 1208 deletions

View File

@@ -833,7 +833,7 @@ class ChatMessageInteractiveInstantVideoNode: ASDisplayNode {
}
}
func animateFromSnapshot(snapshotView: UIView, transition: ContainedViewLayoutTransition) {
func animateFromSnapshot(snapshotView: UIView, transition: CombinedTransition) {
guard let videoFrame = self.videoFrame else {
return
}
@@ -844,11 +844,11 @@ class ChatMessageInteractiveInstantVideoNode: ASDisplayNode {
self.view.addSubview(snapshotView)
transition.updateAlpha(layer: snapshotView.layer, alpha: 0.0, completion: { [weak snapshotView] _ in
transition.horizontal.updateAlpha(layer: snapshotView.layer, alpha: 0.0, completion: { [weak snapshotView] _ in
snapshotView?.removeFromSuperview()
})
transition.animateTransformScale(node: self, from: 1.0 / scale)
transition.horizontal.animateTransformScale(node: self, from: 1.0 / scale)
self.dateAndStatusNode.layer.animateAlpha(from: 0.0, to: self.dateAndStatusNode.alpha, duration: 0.15, delay: 0.18)
if let durationNode = self.durationNode {