Voice Chat UI improvements

This commit is contained in:
Ilya Laktyushin
2020-12-01 06:40:01 +04:00
parent c053f853d1
commit ed28ef6b5b
3 changed files with 31 additions and 4 deletions

View File

@@ -791,6 +791,8 @@ public final class VoiceChatController: ViewController {
}
switch gestureRecognizer.state {
case .began:
self.hapticFeedback.impact(.veryLight)
self.actionButtonPressGestureStartTime = CACurrentMediaTime()
self.actionButton.pressing = true
if callState.muteState != nil {
@@ -801,6 +803,8 @@ public final class VoiceChatController: ViewController {
self.containerLayoutUpdated(layout, navigationHeight: navigationHeight, transition: .animated(duration: 0.3, curve: .spring))
}
case .ended, .cancelled:
self.hapticFeedback.impact(.veryLight)
self.pushingToTalk = false
self.actionButton.pressing = false
let timestamp = CACurrentMediaTime()