Commit dffa0537 authored by Quentin Muret's avatar Quentin Muret Committed by Kateryna Kostiuk

call view: improve UI for iPhone 5 for landscape audio call

Change-Id: If9b62eb6ef8be4186e621ebaa7ec3e5bedcfa05f
Reviewed-by: Kateryna Kostiuk<kateryna.kostiuk@savoirfairelinux.com>
parent 4edbef40
......@@ -352,15 +352,6 @@ class CallViewController: UIViewController, StoryboardBased, ViewModelBased {
self.profileImageViewHeightConstraint.constant = 90
self.profileImageView.cornerRadius = 45
}
if self.viewModel.isAudioOnly {
if device == "iPhone 5" || device == "iPhone 5c" || device == "iPhone 5s" || device == "iPhone SE" {
self.durationLabel.isHidden = true
}
self.buttonsContainer.backgroundBlurEffect.alpha = 0
self.profileImageViewWidthConstraint.constant = 90
self.profileImageViewHeightConstraint.constant = 90
self.profileImageView.cornerRadius = 45
}
if self.viewModel.call?.state == .ringing || self.viewModel.call?.state == .connecting {
self.avatarViewImageTopConstraint.constant = 20
} else {
......@@ -371,6 +362,16 @@ class CallViewController: UIViewController, StoryboardBased, ViewModelBased {
} else {
self.buttonsContainerBottomConstraint.constant = 10
}
if self.viewModel.isAudioOnly {
if device == "iPhone 5" || device == "iPhone 5c" || device == "iPhone 5s" || device == "iPhone SE" {
self.durationLabel.isHidden = true
self.buttonsContainerBottomConstraint.constant = -10
}
self.buttonsContainer.backgroundBlurEffect.alpha = 0
self.profileImageViewWidthConstraint.constant = 90
self.profileImageViewHeightConstraint.constant = 90
self.profileImageView.cornerRadius = 45
}
} else {
if UIDevice.current.hasNotch {
self.avatarViewImageTopConstraint.constant = 120
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment