/duology-design:duo-ergonomicsfrom duology-design
Guides placement of controls for iPhone Duo's foldable form factors — one-handed closed, two-handed open, book grip, and tabletop. Covers thumb zones, reachability, toolbarVerticalEdge, ThumbCorner modifier, ArrangementView overlay, and 44 pt hit regions.
Ships in duology-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
iPhone Duo changes shape in people's hands. Closed, it is a phone you hold in one hand. Open, it is about twice as wide, and both hands hold the side edges. Folded like a book, the fold sits between the hands. On a table, nobody holds it at all. This skill tells you where controls go in each case so thumbs and fingers reach them.
Load other skills for neighbouring work: duo-navigation (bar order, overflow, sheets), duo-layout (reserved regions, safe areas, margins), duo-patterns (layouts and displacement), duo-design-review (rules R4, R7 and R13 check this skill's advice on screenshots).
Labels: a link means Apple says it. Measured means we ran it on the iPhone Duo simulator (iOS 27.1, 18 Oct 2026), closed and portrait unless the claim says open; details in references/measured.md. Derived means arithmetic on Apple's numbers. Judgement means Duology's design advice, not Apple's. Unverified means we could not confirm it. Apple never says "tabletop" or "book grip". Like duo-design-review, Duology says book for Apple's "partially folded, like a book" (fold top to bottom) and tabletop for "seated on a table like a laptop" (fold side to side, the lower half flat on the table).
| Grip | Phone | Hands | What Apple says |
|---|---|---|---|
| One hand, closed | Outer display | One hand; the thumb works from the lower side edge | Closed, it fits comfortably in the hand. Controls move to the right side to save vertical space and so the right thumb reaches them (talk 111466, 0:28 and 1:10) |
| Two hands, open | Inner display, held wide, flat | A hand on each side edge | Controls stay on the side, within easy reach (talk 111466, 1:51, HIG, Vertical controls) |
| Book grip | Inner display, held wide, partly folded | A hand on each half, at the outer edges | The system pushes buttons off the bend toward the side edges, so they are easier to hit (talk 111466, 2:19) |
| Tabletop, hands-free | Inner display, held tall, partly folded, on a table | None; one finger taps | Video and pictures up top; buttons on the lower half, which rests steady on the table (talk 111466, 4:48, talk 111463, 4:23) |
| Two hands, open tall | Inner display, held tall, flat | Both hands, low on the sides | Horizontal bars come back, because there is room (talk 111466, 5:27) |
| Split View | Inner display, two apps side by side | A hand on each side edge | Each app puts its bar on its own outer edge, so the left app's controls are near the left thumb and away from the fold (talk 111466, 3:07) |
Judgement: the Hands column is Duology's reading. Apple names a thumb only for the closed phone and Split View; otherwise it says people hold an iPhone in one or both hands (HIG, Designing for iOS) and describes poses, not hands. Derived from Apple's specs (A2): the closed phone is 84.1 mm wide; open, it is 164.6 × 117.8 mm. The centre of the open display is about 82 mm from either side edge, as far as the whole closed phone is wide. Judgement: a thumb resting on a side edge does not reach the centre without changing grip.
Apple gives four reasons (HIG, Vertical controls, talk 111462, 0:41 to 1:02, talk 111466, 1:10). Closed, the screen is wide and short for an iPhone, so side bars leave more height for content. On the side, controls are easier to reach; closed, the right thumb reaches them. They stay on the same edge when the phone opens held wide, so nothing jumps between displays. They line up with the hardware: next to the outer camera, and on the same edge in right-to-left languages. Each reason with its timestamp: references/grips-and-reach.md.
So the side edge is the reach zone the system already gives you. Judgement: put your own controls near it, not across from it. Held tall, the inner display keeps top and bottom bars (talk 111466, 5:27).
Apple's general iPhone guidance: controls in the middle or bottom of the display are easier to reach (HIG, Designing for iOS). The iPhone Duo pages add the side edge, where the bars go. The zones below combine both. The zone boundaries are judgement. Each grip in depth, with every source and timestamp: references/grips-and-reach.md.
| Phone | Frequent actions here | Occasional actions | Never for frequent actions |
|---|---|---|---|
| Closed | Bottom half; the whole bar edge | Top of the content area | The top corner away from the bar |
| Open, held wide | Lower two thirds of both side bands; the bar | Top of the side bands; the bottom centre, over the fold, only for controls that move off it when the phone folds (displacement, duo-patterns) | Top centre |
| Book | Outer lower part of each half | Top outer corners | The fold band (nothing interactive); top centre |
| Tabletop | Bottom half, near the person | Bottom half, far edge | The top half (it is for watching); the fold band |
| Open, held tall | The bottom bar; lower side bands | The top bar | Top centre |
duo-navigation..bottomBar; they land at the foot of the vertical bar, closest to a one-handed thumb (measured: Share and Delete at the bar's foot, closed). Items overflow from the bottom up by default, so give that group .visibilityPriority(.high) or it is the first to vanish (HIG, talk 111462, 13:23).duo-navigation, and handedness isn't one. The bar stays on the same hardware edge for left-handed people and in right-to-left languages.ThumbCorner below. It follows the bar's edge and an in-app hand preference. It never lands on the fold, because it hugs a side edge.duo-patterns). Scrolling content may cross the fold.ArrangementView; see section 3.contentShape on the label (section 4); .controlSize(.large) grew bordered buttons but not default-style ones (measured, closed and open). On a phone that sits on a table, go bigger, such as 56 pt (judgement).import SwiftUI
@available(iOS 27.0, *) // topBarPinnedTrailing and visibilityPriority
struct PhotoViewer: View {
@Environment(\.dismiss) private var dismiss
var body: some View {
NavigationStack {
Color.black
.navigationTitle("Photo")
.toolbar {
// Top of the vertical bar: the way out, then the prominent action.
ToolbarItem(placement: .cancellationAction) {
Button("Close", systemImage: "xmark") { dismiss() }
}
ToolbarItem(placement: .topBarPinnedTrailing) {
Button("Done", systemImage: "checkmark") { dismiss() }
}
// Foot of the vertical bar: actions people repeat.
ToolbarItemGroup(placement: .bottomBar) {
Button("Favourite", systemImage: "heart") {}
Button("Next", systemImage: "chevron.forward") {}
}
.visibilityPriority(.high)
}
}
}
}
Measured with a toolbar built the same way, closed: Close and Done sat at the top of a vertical bar on the right edge, under the status bar; the bottom group sat at its foot, beside the bottom of the content. When bars are horizontal (inner display held tall), the same group goes to the bottom bar, which is still the easy zone.
Use a floating control only for an action that has no place in the bar, such as Record, Capture or a map's location button. Anchor it to the bottom corner on the side where the thumb rests.
import SwiftUI
/// The side a person wants your own floating controls on. System bars ignore it.
nonisolated enum HandPreference: String, Sendable { case automatic, left, right }
/// Pins one custom control to the bottom corner nearest the thumb.
@available(iOS 27.1, *)
struct ThumbCorner<Control: View>: ViewModifier {
var preference: HandPreference
@ViewBuilder var control: () -> Control
@Environment(\.toolbarVerticalEdge) private var barEdge
@Environment(\.layoutDirection) private var direction
/// Leading or trailing, so SwiftUI mirrors it correctly in right-to-left languages.
private var edge: HorizontalEdge {
switch preference {
case .left: direction == .leftToRight ? .leading : .trailing
case .right: direction == .leftToRight ? .trailing : .leading
case .automatic: barEdge ?? .trailing // no vertical bar here: trailing, as on other iPhones
}
}
func body(content: Content) -> some View {
content.overlay(alignment: edge == .leading ? .bottomLeading : .bottomTrailing) {
control()
// Measured: the margin next to a vertical bar is 0 pt; 16 pt keeps clear of its items.
.padding([.horizontal, .bottom], 16)
}
}
}
@available(iOS 27.1, *)
extension View {
func thumbCorner(_ preference: HandPreference = .automatic,
@ViewBuilder control: @escaping () -> some View) -> some View {
modifier(ThumbCorner(preference: preference, control: control))
}
}
Use it on the content inside the safe area, and keep the person's choice in settings:
import SwiftUI
// requires: HandPreference, ThumbCorner (above)
@available(iOS 27.1, *)
struct MapScreen: View {
@AppStorage("floatingControlsSide") private var hand = HandPreference.automatic
var body: some View {
NavigationStack {
Color.teal.opacity(0.3)
.thumbCorner(hand) {
Button {} label: {
Label("My Location", systemImage: "location.fill")
.labelStyle(.iconOnly)
.font(.title2)
.frame(width: 56, height: 56)
.background(.regularMaterial, in: .circle)
.contentShape(.circle) // on the label, so the whole circle takes taps
}
}
.toolbar {
Menu("Floating Controls", systemImage: "hand.raised") {
Picker("Side", selection: $hand) {
Text("Automatic").tag(HandPreference.automatic)
Text("Left").tag(HandPreference.left)
Text("Right").tag(HandPreference.right)
}
}
}
}
}
}
.automatic the button sat bottom right, beside the bar's foot, in both directions; .left moved it bottom left. Open and flat, held wide, toolbarVerticalEdge read the same values, and section 3's controls, placed by the same edge logic, sat next to the bar in both directions. Folded is unverified. Frames: references/measured.md..automatic follows Apple's own toolbarVerticalEdge example, which aligns a floating palette with the bar's edge (doc). Where the system never places a vertical bar, the value is nil and the button goes trailing.An overlay arrangement does this for you. Closed or flat, it stacks the primary view on top of the secondary. Partly open, the primary takes the part after the fold (trailing, or the bottom) and the secondary the part before it (hub, Arrange views in different poses). Make the controls the primary view.
import SwiftUI
@available(iOS 27.1, *)
struct PlayerScreen: View {
@Environment(\.toolbarVerticalEdge) private var barEdge
var body: some View {
NavigationStack {
ArrangementView {
PlayerControls()
// Bottom corner on the bar's side: of the screen when flat, of the controls' half when folded.
.frame(maxWidth: .infinity, maxHeight: .infinity,
alignment: barEdge == .leading ? .bottomLeading : .bottomTrailing)
// Book: controls take the half with the bar (trailing unless right to left).
.overlayArrangementEdge(barEdge ?? .trailing)
} secondary: {
Color.black.overlay(Text("Video").foregroundStyle(.white))
}
.arrangementViewStyle(.overlay)
}
}
}
struct PlayerControls: View {
var body: some View {
HStack(spacing: 12) {
control("Back 15 Seconds", "gobackward.15") {}
control("Play", "play.fill") {}
control("Forward 15 Seconds", "goforward.15") {}
}
.font(.title)
.padding(4)
.background(.thinMaterial, in: .capsule)
.padding(16) // the margin next to a vertical bar is 0
}
private func control(_ title: String, _ systemImage: String,
action: @escaping () -> Void) -> some View {
Button(action: action) {
Label(title, systemImage: systemImage)
.labelStyle(.iconOnly)
.frame(minWidth: 56, minHeight: 56) // over 44 pt: nobody holds a phone on a table
.contentShape(.rect) // the label's frame, not the glyph, sets the hit region
}
}
}
.frame, duo-patterns measured a short primary at the top edge, out of thumb reach. .controlSize(.large) is no substitute for the label's frame: icon-only buttons without it stayed 25–33 × 28–36 pt at .large (measured; references/measured.md).overlayArrangementEdge(_:) picks the side the primary takes when the arrangement goes side by side (doc). Pinning it to the bar's edge keeps controls on the bar's half. Left to right, that is the trailing half, the side duo-postures uses after Apple's alerts (talk 111463, 4:09). Right to left, the bar's half is the physical right and trailing is the left. Both are judgement, and unverified folded: Device Hub's pose buttons were out of reach in our runs (references/measured.md).Apple's numbers: a hit region of at least 44 × 44 pt; 28 × 28 pt is the floor; about 12 pt of padding around bezeled controls and about 24 pt around borderless ones (HIG, Buttons, HIG, Accessibility).
import SwiftUI
struct TargetButton: View {
let title: String
let systemImage: String
let action: () -> Void
@ScaledMetric(relativeTo: .body) private var side: CGFloat = 44 // grows with Dynamic Type
var body: some View {
Button(action: action) {
Label(title, systemImage: systemImage)
.labelStyle(.iconOnly)
.frame(minWidth: max(side, 44), minHeight: max(side, 44))
.contentShape(.rect) // the whole frame takes taps, not just the glyph
}
}
}
Put the frame and contentShape on the label, inside the Button. A frame or background added outside the Button grows what people see, not what takes taps (a click test in macOS SwiftUI showed this; iOS taps are unverified). .controlSize(.large) grows bordered buttons only: a bordered prominent button went from 34 to 50 pt tall, while default-style icon-only buttons kept their glyph size (measured, closed and open; table). So on a phone that sits on a table, give icon-only and plain buttons a 56 pt frame on the label, and use .controlSize(.large) only on bordered buttons.
toolbarVerticalEdge read .leading, and the 84 pt safe-area inset moved to the leading side. So .trailing does not mean "right". Read the edge; never assume it. Apple's doc says the system picks it from the locale and the device (doc), and the bar can sit on the left: in Split View for the left app, and in some landscape layouts (talk 111461, 7:12).Read traitCollection.verticalBarEdge (.leading, .trailing or .unspecified) and re-place controls when UITraitCollection.systemTraitsAffectingVerticalBarEdge change. Pin floating controls to safeAreaLayoutGuide with leading or trailing anchors, which flip in right-to-left languages. Full controller: references/uikit.md.
Find frequent actions placed at the top centre or in a hand-built top row, and review each hit:
grep -rnE 'placement: *\.principal|overlay\(alignment: *\.top\)|safeAreaInset\(edge: *\.top' --include='*.swift' .
Run the app on the iPhone Duo simulator. In Device Hub, try Closed, Open (held wide and held tall), Partially Open held wide (book) and held tall (tabletop), and Split View on each side. Screenshot each display (--display=primary is the outer display, --display=primary-1 the inner one), then check the reach table above. At 3x, 44 pt is 132 px.
.bottomBar, ranked .high so they don't overflow first.toolbarVerticalEdge or verticalBarEdge, at least 16 pt from the bar. A hand preference moves only your own floating controls.contentShape on the label, and about 12 pt between bezeled targets.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kimeur/duology --plugin duology-design8 skills in this plugin
/duo-accessibilityMakes iPhone Duo apps work with VoiceOver, Dynamic Type, Reduce Motion, Increase Contrast, hardware keyboards, Switch Control and Voice Control on both displays. Use it when VoiceOver reads two panes row by row or loses its place after the phone folds or unfolds, when text truncates or clips on the 5.4-inch outer display at large text sizes, when a hinge effect or resize animation ignores Reduce Motion, when colours fail contrast, when keyboard shortcuts or focus don't work, or when you add accessibility labels, identifiers or audits. Covers accessibilityElement(children: .contain), accessibilitySortPriority, AccessibilityFocusState with a delayed move after a size-class change, AnyLayout and ViewThatFits reflow with isAccessibilitySize, ScaledMetric, accessibilityReduceMotion with onHingeChange, colorSchemeContrast, keyboardShortcut, accessibilityInputLabels, modifiers before .position, Accessibility Inspector, performAccessibilityAudit and XCUIDevice voiceOverService UI tests on the iPhone Duo simulator./duo-design-reviewReviews screenshots, simulator captures and Figma frames for iPhone Duo, Apple's foldable, against a 15-point checklist (letterboxing, state lost on fold and unfold, sizing from UIScreen.main, text or buttons in the fold via reservedRegions .division and .occlusion, odd grid columns, vertical toolbars with symbols and titles, tabletop and book layouts with ArrangementView overlay, camera preview rotation, outer display feature parity, multiple windows with UIWindowScene.ActivationAction, transitions, 44 pt touch targets, hardware keyboard, drag and drop) and writes findings with severity, rule, where and fix. Use it when someone asks to critique, audit or review a design, mockup, concept or Dribbble shot for the foldable, the outer display or the inner display, or asks what breaks when the phone is closed, open, partly folded like a book, propped on a table, in Split View or under Picture in Picture./duo-design-systemDesign tokens and a drop-in SwiftUI token module for iPhone Duo, Apple's foldable, that adapt by size class instead of by device. Covers a 4-point spacing scale, system margins and gutters with a wider gap at the fold, even-column layout grids (4 compact, 8 regular) with spans, one type scale with Dynamic Type for the 5.4-inch outer and 7.6-inch inner display, Liquid Glass usage and legibility (glassEffect, GlassEffectContainer, regular vs clear, dimming, tint), ConcentricRectangle and containerShape for corners, 44 pt touch targets, and light, dark and Increase Contrast colours with a contrast check. Use when you set up spacing, grids, fonts, corners, glass or colours, build a design system, theme or tokens for an iPhone Duo app, or turn a two-frame Figma design into code./duo-patternsPicks and builds layout patterns for iPhone Duo, Apple's foldable iPhone, in SwiftUI - list-detail, supporting pane, two-page, dual view, extended canvas, feed reflow with even columns, tabs to sidebar, and displacement off the fold. Use it when you design or fix a screen for the outer display and the inner display, when content or buttons land in the fold, or when choosing between NavigationSplitView, inspector, ArrangementView (split and overlay styles), TabView with sidebarAdaptable and defaultTabBarPlacement, and reserved regions (division, occlusion, includeInactive)./duo-posturesDesigns iPhone Duo screens for every pose Apple shows: closed on the outer display, open flat (wide or tall), partly folded like a book, propped on a table like a laptop (tabletop), standing like a tent, and open and turned around (flipped, rear cameras facing the user). Use it when a screen must work half folded, when you build a tabletop media player or video call (video on top, the same controls below the fold), a book-pose layout with two regions, or a hinge effect. There is no posture API: read size classes and the .division reserved region (active only when partly folded) with FoldGeometry and FoldRegionsLayout, and keep onHingeChange and UIHingeInteraction for effects, with Reduce Motion and accessibility rules./duo-shared-screenBuilds screens that two people use at the same time on one iPhone Duo, Apple's foldable iPhone - two-player games, teaching, showing a customer, kid and parent. Use when two people share the inner display or the outer display, sit side by side or face to face across a phone lying flat, or when you need one half per person (SharedSplit, an EvenSplit with seating, not ArrangementView), per-half named coordinate spaces and contentShape, DragGesture minimumDistance with onTapGesture, input gated per seat, one-sided destructive controls, sensoryFeedback per half, persistentSystemOverlays and defersSystemGestures during play, rotationEffect to turn a half for face-to-face use, accessibility per half, and XCUITest identifiers namespaced by seat.Other plugins' skills for the same job