Skip to content

Commit

Permalink
Relocate flip cam button when alone in call on iPad
Browse files Browse the repository at this point in the history
  • Loading branch information
marissa-signal authored Aug 28, 2024
1 parent a47aeeb commit 923f3e3
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Signal/Calls/UserInterface/GroupCallViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -382,11 +382,15 @@ class GroupCallViewController: UIViewController {
view.addSubview(fullscreenLocalMemberAddOnsView)
fullscreenLocalMemberAddOnsView.autoPinLeadingToSuperviewMargin()
fullscreenLocalMemberAddOnsView.autoPinTrailingToSuperviewMargin()
fullscreenLocalMemberAddOnsView.autoPinEdge(
.bottom,
to: .bottom,
of: bottomVStack
)
if !UIDevice.current.isIPad {
fullscreenLocalMemberAddOnsView.autoPinEdge(
.bottom,
to: .bottom,
of: bottomVStack
)
} else {
fullscreenLocalMemberAddOnsView.autoPinEdge(toSuperviewSafeArea: .bottom, withInset: Constants.flipCamButtonTrailingToSuperviewEdgePadding)
}

view.addSubview(callControlsConfirmationToastContainerView)
callControlsConfirmationToastContainerView.autoHCenterInSuperview()
Expand Down Expand Up @@ -614,6 +618,7 @@ class GroupCallViewController: UIViewController {

private enum Constants {
static let spacingTopRaiseHandToastToBottomLocalPip: CGFloat = 12
static let flipCamButtonTrailingToSuperviewEdgePadding: CGFloat = 34
}

private func updateMemberViewFrames(
Expand Down

0 comments on commit 923f3e3

Please sign in to comment.