Skip to main content
Enable Picture-in-Picture (PiP) mode to allow users to continue their call in a floating window while using other apps. PiP provides a seamless multitasking experience during calls.
enablePictureInPictureLayout() alone does nothing visible. It only tells the call UI to re-lay-out for a smaller window — it does not create, move or float a window. Something has to provide the small window, and there are two different ways to do that. Pick one before you write any code.

Two kinds of Picture-in-Picture

In both cases you still call enablePictureInPictureLayout() / disablePictureInPictureLayout() so the SDK reshapes the call UI to match.
The Calls SDK does not implement System PiP. If you need the call to float over other apps, that part is Apple’s API and yours to wire.

In-app PiP with PiPViewCoordinator

PiPViewCoordinator ships with the Calls SDK. Give it the same UIView you passed to joinSession(container:) and it turns that view into a draggable, tappable mini-call.

PiPViewCoordinator reference

The tile size is fixed at 150px. The c property that used to set it is deprecated and ignored.

How the SDK layout hook works

  1. Something provides the small window — PiPViewCoordinator (in-app) or AVPictureInPictureController (system)
  2. You notify the Calls SDK by calling enablePictureInPictureLayout()
  3. The SDK adjusts the call UI to fit the smaller window (hides controls, optimizes layout)
  4. When exiting, call disablePictureInPictureLayout() to restore the full UI

Enable Picture-in-Picture

Enter PiP mode programmatically using the enablePictureInPictureLayout() action:

Disable Picture-in-Picture

Exit PiP mode and return to the full-screen call interface:

Listen for PiP Events

Monitor PiP mode transitions using LayoutListener to update your UI accordingly:

System PiP setup (floating over other apps)

Only needed for System PiP — In-app PiP via PiPViewCoordinator requires none of this. 1. Enable Background Modes In your project’s Signing & Capabilities, add the Background Modes capability and enable:
  • Audio, AirPlay, and Picture in Picture
2. Configure AVAudioSession
PiP mode is available on iOS 14.0 and later for iPhones, and iOS 9.0 and later for iPads.