Platform features

Hinge, poses and adaptive layouts

Use reserved regions, ArrangementView, and the hinge API on iPhone Duo to keep controls clear of the fold and camera cutouts, and adapt to Book and Table poses.

9 min readUpdated 4 sources

When iPhone Duo is partially folded, the hinge divides the inner display into two distinct panes. Controls or focal content sitting directly across the crease become as awkward to read or tap as a photo printed across a book’s spine. Meanwhile, the outer display has a fixed front camera cutout, and the inner display’s under-display FaceTime camera temporarily blocks a small region whenever it’s active.

Standard containers handle most fold adjustments automatically: NavigationStack, NavigationSplitView, and TabView reposition their bars and columns, alerts and popovers shift clear of the crease, and split views snap to a balanced 50/50 split.12 List and ScrollView behave differently by design: continuous content scrolls smoothly across the fold rather than jumping out of the way.1 You only need the APIs below for custom layouts. Because they are new in iOS 27.1, gate them with #available(iOS 27.1, *) and provide a size-class fallback.1

There is no “pose” enum

Apple’s engineers emphasize that there is no high-level API that reports “book mode” or “table mode”.3 Instead, pose changes arrive as size-class, trait, and reserved-region updates. Use reserved regions and ArrangementView to drive layout, and reserve the raw hinge angle for continuous visual effects or gameplay.

Reserved regions

A reserved region describes an area of your view’s coordinate space claimed by hardware — either the hinge crease or a camera — that interactive controls should avoid.4 iOS 27.1 defines two kinds:

  • Division (.division): the fold crease. It is active only while the phone is partially folded; when opened flat, the region becomes inactive with zero width.
  • Occlusion (.occlusion): a localized hardware cutout inside your view. The outer front camera permanently occludes part of the outer display (and expands with the Dynamic Island during Live Activities), while the inner under-display FaceTime camera occludes a spot on the inner screen only while capturing.4
// SwiftUI: read inside GeometryReader or onGeometryChange
GeometryReader { proxy in
    let regions = proxy.reservedRegions(kind: .division)
    let frames = regions.map(\.frame)
    // ...
}

// UIKit
let regions = view.reservedRegions(kind: .division)
let frames = regions.map(\.frame)

By default, reservedRegions returns only currently active regions. Pass .includeInactive when you want your layout to plan ahead even while the screen is flat — for instance, keeping an even number of columns in a grid whenever a division region exists so items never straddle the crease when bent:

let regions = proxy.reservedRegions(kind: .division, options: .includeInactive)

Reach for reserved regions when building custom bars, custom bottom sheets, or edge-to-edge controls where safeAreaInsets alone doesn’t tell the full story.3

Displacing content around the fold

Apple’s Human Interface Guidelines call shifting elements clear of an active fold displacement:4

  • Shift standalone controls individually; shift related control groups together as a unit.
  • Keep displaced elements close to their natural resting position so the transition feels predictable.
  • Never displace scrolling content. Articles, timelines, documents, and lists naturally scroll across the crease; splitting them breaks reading flow.
  • Match placement to how the device is held. In Book pose, alerts move to the trailing pane near where they appear when folded shut. In Table pose (propped on a surface like a laptop), place viewing content on the angled top half and touch controls on the flat bottom half where the device rests steadily.4
  • Adjust size alongside position when appropriate — for example, letting a search bar follow and match the width of the pane it filters.

ArrangementView: two views that adapt automatically

When a screen pairs a primary view with a secondary view — such as a video player and its Up Next queue — iOS 27.1 provides ArrangementView (SwiftUI) and UIArrangementViewController (UIKit). The container evaluates size classes, aspect ratio, and active fold regions to decide how to arrange the two views and whether both fit onscreen.1

// SwiftUI
NavigationStack {
    ArrangementView {
        PlayerView()
    } secondary: {
        UpNextView()
    }
}

// UIKit
let arrangementVC = UIArrangementViewController()
arrangementVC.setViewController(PlayerViewController(), for: .primary)
arrangementVC.setViewController(UpNextViewController(), for: .secondary)
let nav = UINavigationController(rootViewController: arrangementVC)

It supports two arrangement styles:

  • Split (default) divides available space: side by side when wider than tall, or stacked vertically when taller than wide. Constrain it to a single axis with .arrangementViewStyle(.split.axes(.horizontal)). If both views cannot fit along the allowed axis, only the primary view is shown.
  • Overlay layers one view over the other when flat and separates them side by side when the phone is partially folded. Read @Environment(\.overlayArrangementZIndex) in SwiftUI (or state(for:) in UIKit) to toggle your secondary view between compact and expanded chrome.

Which style to pick: if you currently use an HStack or VStack, use split; if you use a ZStack, use overlay. In general, use overlay for foreground controls over a canvas, and split when both panes carry primary content.1

Two important rules: ArrangementView does not manage navigation bars, so place it inside a NavigationStack (never wrapping one), and never embed an ArrangementView inside a List or ScrollView.1

The hinge API: for continuous effects, not layout

onHingeChange in SwiftUI and UIHingeInteraction in UIKit report a hinge status (closed, partiallyOpen, fullyOpen) along with a continuous angle in degrees. Because non-foldable devices return nil for context.hinge, always unwrap safely.1

struct InstrumentView: View {
    @State private var pitchBend: Double = 0

    var body: some View {
        GuitarView(pitchBend: pitchBend)
            .onHingeChange { _, context in
                // A nil hinge means the device doesn't have one.
                if let hinge = context.hinge, hinge.status == .partiallyOpen {
                    pitchBend = calculatePitchBend(angle: hinge.angle)
                } else {
                    pitchBend = 0
                }
            }
    }
}

Use the hinge angle for visual polish and interactive effects — like Apple’s dynamic wallpaper zoom or the guitar pitch-bend above. Never drive structural layout from the raw angle: update frequency and precision are governed by system power policy, and there is no API for detecting an exact 90° bend.13

Quick checklist

  1. Audit centered single-column screens: would they work better as two columns or displaced panes when folded?
  2. Prefer standard system containers and sheet presentations wherever possible.
  3. Use ArrangementView for two-pane split or overlay layouts — it works across all iOS devices, not just iPhone Duo.
  4. Reach for reservedRegions only when positioning custom edge-to-edge controls by hand.

Sources

  1. Tech Talk: Strike a pose with adaptive layouts on iPhone Duo
  2. Tech Talk: Leverage multiple displays and scenes on iPhone Duo
  3. Apple Developer Forums: A summary of the iPhone Duo Group Lab
  4. Human Interface Guidelines: Designing for iPhone Duo