Iphone Duo Hinge And Scenes logo

Iphone Duo Hinge And Scenes

Community
mirzaaghazadeh
iphone-duo-hinge-and-scenes

Use the iPhone Duo hinge angle for interactions and effects, support Split View multitasking and multiple app scenes, and pair UI across both displays with scene accessories including CameraCaptureAccessory. Use when building fold-driven effects, multi-window support, or dual-display experiences.

Overview

Publishermirzaaghazadeh
Repositoryiphone-duo-skills
Skill nameiphone-duo-hinge-and-scenes
Stars
188
Forks
9
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mirzaaghazadeh on GitHub. Read the source before you install it.

Installation

Install the Iphone Duo Hinge And Scenes AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mirzaaghazadeh/iphone-duo-skills/tree/main/skills/iphone-duo-hinge-and-scenes
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mirzaaghazadeh/iphone-duo-skills.git /tmp/iphone-duo-skills
mkdir -p .claude/skills
cp -r /tmp/iphone-duo-skills/skills/iphone-duo-hinge-and-scenes .claude/skills/iphone-duo-hinge-and-scenes
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Iphone Duo Hinge And Scenes in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Iphone Duo Hinge And Scenes on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Iphone Duo Hinge And Scenes is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Hinge, multitasking and scenes

Three capabilities that are unique to iPhone Duo, in rising order of ambition: reacting to the hinge, participating in Split View, and putting your own UI on both displays at once.

The hinge

The system itself responds to the hinge — the wallpaper reacts to the angle with a zoom effect as the device opens. Apps can read the same signal.

Use the onHingeChange modifier in SwiftUI, or UIHingeInteraction in UIKit. Both give you:

  • a coarse status — closed, partially open, fully open
  • a continuous angle, updated live

onHingeChange hands your closure the previous and current hinge context. UIHingeInteraction hands its handler the interaction and an Update instead, and also fires when the view moves between hierarchies.

Watch the types — they differ between frameworks:

  • SwiftUI's angle is an Angle; UIKit's is a CGFloat in radians.
  • SwiftUI's DeviceHinge.Status is a struct (a switch needs default); UIKit's UIHinge.Status is an enum with a fourth case, .unknown.
  • The system decides the status from the angle and device orientation, so don't recompute it from thresholds. Update rate and precision are system policy — don't assume a frequency.

Full signatures, a reusable normaliser, and effect patterns are in ../iphone-duo-dual-pane-patterns/SKILL.md.

Two things to check before using the value:

  1. Is there a hinge at all? A nil hinge means the app is running on a device without one. Same binary, most devices.
  2. Is the device in a state you care about? Usually you only want updates while partially open — and you need an else branch that resets whatever the angle was driving, so the effect doesn't stick at a stale value once the user opens the device flat.

Then map the angle to your parameter and update state.

What the hinge is for

Interactions and effects. The angle is a live, continuous input stream — it behaves like a sensor, and it suits things that respond continuously. Driving a pitch bend from the fold angle, the way a whammy bar works, is the right shape of idea.

Not layout. Do not lay out views from the hinge angle. Layout has proper tools that are declarative, testable and correct on devices with no hinge: arrangements and reserved regions, in ../iphone-duo-adaptive-layout/SKILL.md. Reaching for the angle here produces layout that thrashes during the fold and breaks everywhere else.

Split View multitasking

Every app participates. Two apps sit side by side, created with the familiar home gesture — drag an app to one side and drop it. There's a second layout too, stacking video and apps together when Picture-in-Picture is pinned. Your app handles both identically.

If the app already supports resizing on iPad or under iPhone mirroring, it is most of the way there. The system gives you size classes and scene geometry to make layout decisions from; the general guidance in ../iphone-duo-readiness/SKILL.md applies unchanged.

The detail worth testing: in Split View, vertically laid out bar content can appear on either side of your app, depending on which half you occupy. Drag the app to both sides in Device Hub and check that asymmetric safe area handling holds up.

Multiple scenes

iPhone Duo is the first iPhone to support multiple simultaneous instances of an app's UI. If the app already supports this on iPad, it works here too.

One behavior is genuinely new, though:

New windows cannot be created on the outer display. That is reserved for the inner display, and the availability changes as the user opens and closes the device. This dynamic availability doesn't exist on iPad.

Consequences:

  • Handle errors when requesting new scenes. A request that always succeeded on iPad can now fail.
  • Prefer UIWindowSceneActivation, which automatically hides itself when new windows aren't available — so users never tap an affordance that can't work.

Scene accessories

Scene accessories pair additional content with your app's main UI on another display. They aren't Duo-specific — the same mechanism backs using an iPhone as a controller for a game on an external display — but iPhone Duo gives every user two displays to work with.

The system controls availability dynamically. Accessories are enabled by default and can be toggled at any time, so observe availability rather than assuming it: use observation tracking, or the onAvailabilityChange modifier, and reflect the current state in your UI (disabling a toggle button when the accessory can't be shown, for instance).

CameraCaptureAccessory

For camera apps, CameraCaptureAccessory puts UI on the outer display while the app's main UI stays on the inner one. The person being photographed can see something while you shoot — showing a child something entertaining, or running a teleprompter for a subject on camera.

Two conditions gate availability: the app must be full screen on the inner display, and it must have an active camera session.

Register the accessory on the same view as your camera UI. Scoping it that way means the accessory appears and disappears with the camera view itself, without any extra lifecycle code. In SwiftUI that's the sceneAccessory modifier applied to the camera view.

Adding a toolbar control to toggle the accessory is a natural pairing — drive it from your model, and use onAvailabilityChange to disable the control when the accessory isn't available, such as when the device is closed.

Camera specifics — which physical camera is streaming, and which way it is actually facing once two displays are involved — are in ../iphone-duo-camera/SKILL.md. That question gets genuinely subtle, and the direction coordinator exists to answer it.

Checklist

  1. Support resizing first. Split View correctness follows from it.
  2. Test the app on both sides of a Split View, in every pose.
  3. If the app supports multiple windows, handle scene-request failure and adopt UIWindowSceneActivation.
  4. Consider whether a hinge-driven effect genuinely improves the app — then guard for nil hinge and reset state when the device leaves the range you care about.
  5. For camera apps, evaluate whether a CameraCaptureAccessory on the outer display would help the person in front of the lens.

Frequently asked questions

What does the Iphone Duo Hinge And Scenes AI skill do?

Use the iPhone Duo hinge angle for interactions and effects, support Split View multitasking and multiple app scenes, and pair UI across both displays with scene accessories including CameraCaptureAccessory. Use when building fold-driven effects, multi-window support, or dual-display experiences.

Why use Iphone Duo Hinge And Scenes on TypingMind?

Because you install it once and use it with any model. Iphone Duo Hinge And Scenes is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Iphone Duo Hinge And Scenes in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mirzaaghazadeh/iphone-duo-skills/tree/main/skills/iphone-duo-hinge-and-scenes. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Iphone Duo Hinge And Scenes?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Iphone Duo Hinge And Scenes?

As many as you like. As long as a model supports skills, you can use Iphone Duo Hinge And Scenes with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Iphone Duo Hinge And Scenes AI skill free?

It is published on GitHub by mirzaaghazadeh. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇