- Home
- Skills
- Mobile Development
- iPhone Duo Hinge, Displays and Cameras
Works with the AI Agents you already use
iPhone Duo Hinge, Displays and Cameras
Use the hinge, the two displays, the two front cameras and multiple windows of iPhone Duo.
$9.99
iPhone Duo Hinge, Displays and Cameras
Example session with this skill installed
Write a UIKit helper that requests a new window and shows a useful error if iPhone Duo cannot open it.
- Read your context and instructions
- Compiled the iphone duo hinge
Here is a UIKit helper that handles a failed scene request and explains it to the user. It does not assume another window is available on the current display.
Window Request Helper
import UIKit
@MainActor
extension UIViewController {
func requestNewWindow(for activity: NSUserActivity) {
UIApplication.shared.requestSceneSessionActivation(
nil,
userActivity: activity,
options: nil
) { [weak self] error in
let details = error.localizedDescription
Task { @MainActor [weak self] in
guard let self,
self.viewIfLoaded?.window != nil,
self.presentedViewController == nil else {
return
}
let alert = UIAlertController(
title: "Cannot Open Another Window",
message: "Another window may not be available "
+ "on this display.\n\n" + details,
preferredStyle: .alert
)
alert.addAction(UIAlertAction(
title: "OK", style: .default
))
self.present(alert, animated: true)
}
}
}
}
Next steps
- Confirm multiple-scene support and handle the supplied activity in the new scene.
- Use
UIWindowScene.ActivationActionfor an availability-aware menu control. - Test successful activation on the inner display and failure handling on the outer display.
Connects securely to your tools. The creator never sees your data.
About this skill
iPhone Duo has a hinge, two displays and two front cameras. It is also the first iPhone that shows more than one window of an app. This skill helps your SwiftUI or UIKit app use these features and degrade correctly on other devices.
What it does
- Hinge: angle and fold state with
onHingeChangeandUIHingeInteraction, for interactions and effects, not for layout. - Split View multitasking: all apps take part, including the stacked video layout.
- Multiple scenes: handles
requestSceneSessionActivationerrors on the outer display and usesUIWindowScene.ActivationAction. - Scene accessories:
sceneAccessoryandCameraCaptureAccessoryfor a preview, a countdown or a teleprompter on the outer display. - Cameras: the virtual front camera,
AVCaptureDeviceDirectionCoordinatorand preview mirroring when the device opens or closes. - StandBy: a widget, so the app appears in StandBy on the outer display.
How it works
- A read-only scan and an SDK check show what compiles with your Xcode.
- The skill writes recommendations. Each one cites the Apple session it comes from.
- You approve each change. The skill applies it and builds.
Works with
SwiftUI and UIKit apps in Xcode. The hinge APIs, CameraCaptureAccessory, the direction coordinator and the physical front camera types need the iOS 27.1 SDK. sceneAccessory and UIWindowScene.ActivationAction work with earlier SDKs.
The hinge and camera APIs do not compile with the iOS 27.0 SDK. The skill checks your SDK and lists those items as blocked. Hinge features need the iPhone Duo simulator or a device to test, and they must do nothing on other devices.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 month ago
Permissions
Terminal: the skill runs its read-only scanner with python3 and calls xcrun to find the SDK path. Read Files: it reads Swift sources, Info.plist and project files. Write Files: it changes code only after you approve each change. No network access. The domains in references/sources.md are citations, not services.