Releases

Build iPhone Duo Camera Apps for Both Displays

Build iPhone Duo Camera Apps for Both Displays

Build iPhone Duo Camera Apps for Both Displays

Build iPhone Duo Camera Apps for Both Displays

One of the most common questions at our iPhone Duo hackathon was how to build apps that use both displays at once.

Apple’s answer is CameraCaptureAccessory, which shows content on the outer display while the camera is running. But Xcode’s simulator doesn’t have a camera, and it can’t even show you the outer display when iPhone Duo is unfolded. So without an iPhone Duo in hand, there isn’t a good way to build one.

Today, that changes:

Bitrig can now stream your Mac’s camera into its 3D simulator, so you can build iPhone Duo apps that use both displays and see them from either side.

That means:

  • Your Mac’s camera. Your app sees what your Mac’s camera sees, or your iPhone’s with Continuity Camera, so you can take photos and record video with the front or back camera, just as you would on iPhone.

  • Both displays at once. Start the camera with your app full screen on the inner display, and your CameraCaptureAccessory appears on the outer one.

  • Open and flip. Unfold the 3D simulator all the way, then spin it around to see the outer display from the side of the person you’re pointing the camera at.

  • Prerecorded video. Stream a video you’ve already captured in place of your Mac’s camera, so you can test against the same shot every time instead of setting it up again.

Your app talks to the camera through Apple’s standard AVFoundation APIs. There’s no SDK to add and no simulator-only code to write. It turns on automatically for any app that asks for camera access. And it isn’t just for Duo. The camera works in every iPhone and iPad simulator.

When your iPhone Duo arrives, run your app on it with one click.

Until then, Bitrig makes camera apps much easier to test in the simulator, and apps that use both of iPhone Duo’s displays possible to test for the first time.

So open Bitrig, unfold the simulator, turn on the camera, and give it a spin.

Don't Miss Anything!

Get all the latest news, and product updates from Bitrig.

Get all the latest news, and product updates from Bitrig.

Bitrig home
Bitrig on X
Bitrig on YouTube
Bitrig on Discord

Newsletter

Bitrig home
Bitrig on X
Bitrig on YouTube
Bitrig on Discord

Newsletter

Bitrig home
Bitrig on X
Bitrig on YouTube
Bitrig on Discord

Newsletter

Bitrig home
Bitrig on X
Bitrig on YouTube
Bitrig on Discord

Newsletter