Video Chat Improvements

This commit is contained in:
Ilya Laktyushin
2021-05-19 16:52:43 +04:00
parent 981367c33c
commit 877d7459bf
19 changed files with 1503 additions and 522 deletions

View File

@@ -169,13 +169,13 @@ public final class VoiceChatOverlayController: ViewController {
if reclaim {
self.dismissed = true
let targetPosition = CGPoint(x: layout.size.width / 2.0, y: layout.size.height - layout.intrinsicInsets.bottom - 205.0 / 2.0 - 2.0)
let targetPosition = CGPoint(x: layout.size.width / 2.0, y: layout.size.height - layout.intrinsicInsets.bottom - bottomAreaHeight / 2.0 - 3.0)
if self.isSlidOffscreen {
self.isSlidOffscreen = false
self.isButtonHidden = true
actionButton.layer.sublayerTransform = CATransform3DIdentity
actionButton.update(snap: false, animated: false)
actionButton.position = CGPoint(x: targetPosition.x, y: 205.0 / 2.0)
actionButton.position = CGPoint(x: targetPosition.x, y: bottomAreaHeight / 2.0)
leftButton.isHidden = false
rightButton.isHidden = false
@@ -191,7 +191,7 @@ public final class VoiceChatOverlayController: ViewController {
actionButton.layer.removeAllAnimations()
actionButton.layer.sublayerTransform = CATransform3DIdentity
actionButton.update(snap: false, animated: false)
actionButton.position = CGPoint(x: targetPosition.x, y: 205.0 / 2.0)
actionButton.position = CGPoint(x: targetPosition.x, y: bottomAreaHeight / 2.0)
leftButton.isHidden = false
rightButton.isHidden = false