Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    iPhone Duo Hinge, Displays and Cameras

    1

    Use the hinge, the two displays, the two front cameras and multiple windows of iPhone Duo.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    iPhone Duo Hinge, Displays and Cameras

    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.ActivationAction for 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 onHingeChange and UIHingeInteraction, for interactions and effects, not for layout.
    • Split View multitasking: all apps take part, including the stacked video layout.
    • Multiple scenes: handles requestSceneSessionActivation errors on the outer display and uses UIWindowScene.ActivationAction.
    • Scene accessories: sceneAccessory and CameraCaptureAccessory for a preview, a countdown or a teleprompter on the outer display.
    • Cameras: the virtual front camera, AVCaptureDeviceDirectionCoordinator and preview mirroring when the device opens or closes.
    • StandBy: a widget, so the app appears in StandBy on the outer display.

    How it works

    1. A read-only scan and an SDK check show what compiles with your Xcode.
    2. The skill writes recommendations. Each one cites the Apple session it comes from.
    3. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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 / Shell
    Read Files
    Write Files

    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.

    Listed1 month ago

    What's inside

    Frequently Asked Questions

    The skill uses an automated scan of your SwiftUI or UIKit codebase to identify where new iPhone Duo APIs—like hinge states and multi-window scenes—can be integrated without breaking backwards compatibility for older devices.

    The skill requires the iOS 27.1 SDK for advanced hardware features like the hinge and front camera coordination, though basic scene accessory features will work with earlier versions.

    Yes, the skill is designed to handle Split View multitasking and stacked video layouts, ensuring your app behaves correctly when running alongside other windows or in folded configurations.

    The skill provides a recommendation report citing official Apple documentation for each change; you have full control to approve or reject specific modifications before they are applied to your Xcode project.

    It leverages the new `CameraCaptureAccessory` and `AVCaptureDeviceDirectionCoordinator` to manage previews, countdowns, and mirroring across both displays, including the unique outer display teleprompter mode.

    New in Mobile Development