[WIP] Call UI

This commit is contained in:
Isaac
2023-12-06 00:51:21 +04:00
parent 61efee0d51
commit 5da3442266
13 changed files with 482 additions and 71 deletions

View File

@@ -142,6 +142,8 @@ public final class ViewController: UIViewController {
self.callState.lifecycleState = .terminated(PrivateCallScreen.State.TerminatedState(duration: 82.0))
self.callState.remoteVideo = nil
self.callState.localVideo = nil
self.callState.isMicrophoneMuted = false
self.callState.isRemoteBatteryLow = false
self.update(transition: .spring(duration: 0.4))
}
callScreenView.backAction = { [weak self] in
@@ -151,6 +153,12 @@ public final class ViewController: UIViewController {
self.callState.isMicrophoneMuted = !self.callState.isMicrophoneMuted
self.update(transition: .spring(duration: 0.4))
}
callScreenView.closeAction = { [weak self] in
guard let self else {
return
}
self.callScreenView?.speakerAction?()
}
}
private func update(transition: Transition) {