Guides

iPhone Duo layout issues: a SwiftUI and UIKit release checklist

By Evaldas Paulauskas · Last reviewed

This checklist is for teams adapting an existing SwiftUI or UIKit app after iPhone Duo’s October 2026 release. A screen that looks fine at launch can fail halfway through a task. Open the device while editing a draft, rotate a sheet or put the app beside another app. Check whether the person can finish the task with their text, selection and controls intact.

Start with a repeatable failure, fix the layout assumption behind it and keep evidence from the candidate build. Use the checks below as acceptance criteria for the flows your app supports.

Code samples use a demo app. Captions identify the runtime used for each capture.

Before: fixed-width row

Actual simulator capture: only Co of Continue fits inside the fixed-width row.

After: container-aware stack

Actual simulator capture: the full Continue button fits below the wrapping title.
Original captures from a deliberately broken and corrected SwiftUI demo. iPhone 17e simulator, iOS 26.4.1, Accessibility 3. The test demonstrates the narrow-container failure pattern. Demo source

1. Separate SDK presentation from a layout defect

Apple distinguishes three build behaviours. An iOS 26 SDK build runs within a smaller presentation. The iOS 27 SDK enables resizing across most of the inner display. With iOS 27.1 or later, content can extend across the display and bars adapt vertically. Compare the shipped build with the rebuilt app before diagnosing a changed margin.

Record the Xcode version, build SDK, runtime OS and build number together. Changing the SDK and a navigation implementation in the same experiment makes a regression harder to explain. Take a baseline screenshot of the same screen and data in each build, then repeat the transition that matters to your users.

  • Keep the production build available while testing the candidate.
  • Check a real list, detail screen and editing flow rather than only the launch screen.

Sources: Apple: SDK behaviour on iPhone Duo

2. Run Apple’s app resizability skill

In Xcode’s coding assistant, ask “get my app ready for iPhone Duo.” Apple’s skill scans for common resizing problems and proposes changes. For another coding agent, Apple documents the Terminal command below to export the skill. By default, the command writes bundles under ./xcode-skills. Each skill has its own SKILL.md; the available names depend on your Xcode installation. Review the files before installing them in another agent.

Treat each suggestion as a code-review item. Identify the affected screen, make one focused change, and run its reproduction steps. A scan cannot tell you whether a customer’s unsent message survived a transition. Keep the manual test list beside the findings so automated suggestions lead to observable results.

Export Apple’s skill for another coding agent

xcrun agent skills export

Exported bundle layout

xcode-skills/
└── <skill-name>/
    └── SKILL.md
  • Save a clean baseline before accepting generated changes.
  • Record which findings were fixed, dismissed with a reason, or still need a running build.

Sources: Apple: run the app resizability skill

3. Replace screen assumptions with current container geometry

A view owns only the space its container gives it. In UIKit, use view or window bounds and Auto Layout. In SwiftUI, use the proposed layout, size classes, GeometryReader or onGeometryChange where measurement is necessary. Recalculate when that space changes. Device orientation and a regular size class do not identify the device or guarantee a full-width window.

Start with a visible failure. If an image crops the subject, inspect its aspect-fill behaviour. If a checkout button moves off screen, trace its constraints and any cached height. Replacing every number in the app is rarely useful. A minimum control height or readable text width can express an intentional design rule. A hardcoded device width usually expresses an assumption about a screen that the view may no longer occupy.

The screenshots above come from the same small app and content. The first build forces a 640-point row into a narrower card; the second uses ViewThatFits to stack the button when the row cannot fit. That is a reproducible container-sizing failure. Native Duo pose changes still need the Duo simulator or device.

  • Search for UIScreen.main, cached launch sizes, device-model lists and phone-versus-pad layout branches.
  • Exercise the affected screen at narrow and wide sizes with the keyboard both visible and dismissed.

Sources: Apple: common layout and resizing considerations

4. Preserve SwiftUI state when changing layout containers

An if statement that replaces a VStack with an HStack also changes the structural identity of their children. Local state inside those children can be recreated. AnyLayout changes the layout implementation while keeping the same child hierarchy. It is available from iOS 16, so this fix does not require making Duo’s OS your deployment target.

These self-contained examples show the difference. In the first, DraftFields appears in separate conditional branches. In the second, a single DraftFields remains under the AnyLayout container. Type into the field, then change width or use an accessibility text size. The revised version should retain the draft as the controls stack or sit beside each other.

Before: separate branches recreate the stateful child

import SwiftUI

struct DraftScreen: View {
    @Environment(\.horizontalSizeClass) private var widthClass

    var body: some View {
        if widthClass == .regular {
            HStack { DraftFields() }
        } else {
            VStack { DraftFields() }
        }
    }
}

private struct DraftFields: View {
    @State private var draft = ""

    var body: some View {
        TextField("Draft", text: $draft)
            .textFieldStyle(.roundedBorder)
        Text("Characters: \(draft.count)")
    }
}

After: one child hierarchy with a changing layout

import SwiftUI

struct DraftScreen: View {
    @Environment(\.horizontalSizeClass) private var widthClass
    @Environment(\.dynamicTypeSize) private var textSize

    var body: some View {
        let stackVertically = widthClass != .regular
            || textSize.isAccessibilitySize
        let layout = stackVertically
            ? AnyLayout(VStackLayout(alignment: .leading, spacing: 12))
            : AnyLayout(HStackLayout(alignment: .firstTextBaseline, spacing: 12))

        layout {
            DraftFields()
        }
        .padding()
    }
}

private struct DraftFields: View {
    @State private var draft = ""

    var body: some View {
        TextField("Draft", text: $draft)
            .textFieldStyle(.roundedBorder)
        Text("Characters: \(draft.count)")
    }
}
  • Also verify the selected record, navigation destination, scroll position and keyboard focus. Stable child identity alone does not prove that all of them are preserved.
  • Keep durable draft data in the appropriate model or persistence layer when it must survive scene destruction or app termination. AnyLayout only addresses the layout-container change.

Sources: Apple: AnyLayout preserves subview state across layout changes

5. Check safe areas, reserved regions and vertical controls

Duo adds reserved regions for cameras and the fold. Standard containers handle many adjustments. Custom controls need inspection with SwiftUI ReservedRegion or UIKit UIView.ReservedRegion where appropriate. Avoid a permanent central gutter based on an assumed hinge width. Inspect the region reported for the current presentation.

System bars move to the side on the outer display and on the inner display in landscape. Inner portrait keeps horizontal bars. In multitasking, controls can appear on the app’s outer edge. Check custom bottom bars, floating actions and toolbar items against those changing insets.

Make the test concrete. Open an edit sheet, enable the camera if the flow uses it, and partly fold the device. Confirm that Save and Cancel remain visible and tappable. Try long button titles and right-to-left content. Record the actual clipped or obscured control rather than filing a general “safe area broken” ticket.

  • Start with navigation containers and standard toolbar items before reproducing system behaviour in custom chrome.
  • Check the left and right multitasking positions separately. A pass on one side does not establish the other.

Sources: Apple: reserved regions and vertical controls

6. Use hinge data for interactions and layout APIs for layout

Apple documents SwiftUI onHingeChange and UIKit UIHingeInteraction. They expose hinge status and live angle updates. The hinge context can be absent on a device without a hinge. Apple’s guidance separates interaction effects from layout, which should use arrangement and reserved-region APIs.

An angle-driven feature should have a useful fallback. Decide what a slider, camera control or game does when hinge input stops, then test that transition. For ordinary forms and lists, start by making the existing layout resize. Adding an angle observer to every screen adds behaviour to maintain before you have established a user need.

  • If the product uses hinge input, test leaving and returning to the relevant state.
  • Keep normal iPhone behaviour usable when the hinge is unavailable.

Sources: Apple: hinge input versus layout APIs, at 0:49 and 2:35

7. Distinguish a navigation split view from two-app multitasking

NavigationSplitView and UISplitViewController organise hierarchy inside your app. Duo’s Split View multitasking puts two apps beside each other. Test both. A useful list-and-detail layout on the full inner display may need to collapse when your app occupies one side. Preserve the selected detail so the person can continue without searching again.

Use a realistic sequence. Select an order, put the app beside Mail, return to the order and open its action menu. Then switch sides and repeat. Check that the menu anchors to the intended item and that the primary action still has room. Repeat with the largest supported accessibility text sizes and a long translated order description.

ConfigurationAction to repeatPassing result
Outer displayEdit a draft, open and close DuoDraft and intended destination remain available
Inner display, both orientationsOpen a sheet and its action menuControls stay reachable and anchors remain correct
Partially openContinue a task near the foldImportant controls remain visible and usable
Split View, left and rightOpen the selected detail and keyboardContent collapses sensibly and the action can be completed
Accessibility text sizesRead long content and submit a formLabels wrap and the final action is reachable by scrolling

Sources: Apple: multiple scenes and Split View multitasking

8. Turn Xcode testing into a reproducible release check

Apple lists the resizable iOS simulator in Device Hub, resizable iPhone Mirroring on macOS 27, and the Duo simulator in Xcode 27.1 as testing tools. Use the Duo simulator for native device behaviour. The resizable simulator also helps expose layouts that pass at familiar device sizes but fail between them.

Run the candidate on the Duo simulator and prepare a known state with harmless test data. Enter a distinctive draft, select a record and open the relevant screen. Change the device pose without relaunching. Rotate, open and dismiss the keyboard, and present the sheet that belongs to that task. Repeat the same journey in two-app Split View.

A screenshot is evidence of appearance at one instant. Add the steps immediately before it and the expected interaction immediately after it. For a lost-draft defect, record the entered text and which transition erased it. For an inaccessible button, record the text size, keyboard state and whether scrolling could reach the action.

After a fix, replay the original failure on the same configuration, then check one narrow and one wide neighboring configuration. Include a normal iPhone regression check. If hardware is available, repeat the important flows there and label simulator-only evidence clearly. Finish with a short release record of tested flows, remaining failures and accepted limitations.

  • Keep build number, runtime, text size, app state and transition in every reproduction.
  • Use the same test account and record before and after the fix so data differences do not hide a regression.

See Blake Crosley’s published Duo simulator captures of an inspector stretched after unfolding.

Sources: Apple: interact with your app in Device Hub · Apple: tools for testing resizing

9. Connect layout failures to release risk and codebase debt

A clipped login button or an unusable purchase flow can prevent App Review from completing its checks. Guideline 2.1 covers app completeness, including bugs and crashes. Guideline 4.2 concerns minimum functionality. A missing custom Duo layout is not, by itself, proof of a 4.2 violation or a guaranteed rejection. Use the actual review message to decide what needs evidence.

If a resize tears down your signed-in flow, check who owns the session and how long its data lives. Repeated geometry branches can point to a broader ownership problem in an inherited codebase. Follow the session through storage and backend authorization to see whether the defect also affects access.

Use the App Store rejection checklist for a blocked submission.

Review an inherited app’s security boundaries alongside its layout debt.

See the iPhone Duo compatibility review and fix process.

Sources: Apple: App Review Guidelines 2.1 and 4.2

Frequently asked questions

What is the iPhone Duo app resizability skill?

Apple’s coding-assistant skill finds common resizing assumptions and proposes changes in an existing app. Run it in Xcode or export it for another agent. Test the affected journeys, including drafts, selections and navigation during a resize.

What happens if my app does not resize on iPhone Duo?

An older SDK build uses a smaller presentation. A newer build can still clip controls or lose the current task if the app relies on fixed geometry or recreates state during resizing. Compare the build SDK and reproduce the failure before choosing the fix.

How do I run Apple’s app resizability skill?

Ask Xcode’s coding assistant to “get my app ready for iPhone Duo.” For another coding agent, export it with xcrun agent skills export. Review the proposed changes and test the affected flows.

Is a custom iPhone Duo layout required for every app?

No. Existing apps run on Duo, and the build SDK determines their presentation and resizing behaviour. Changes are needed where testing reveals clipped controls, lost state or another failure to complete a task.

Why does my app not resize across the full inner display?

The build SDK determines how much of the inner display the app can use. Older builds use a smaller presentation. If a rebuilt app still fails to fill the expected area, check fixed sizes, cached geometry and custom containers.

How can I test iPhone Duo layouts in Xcode?

Use the Duo simulator in Xcode 27.1 and Device Hub. Exercise a task across closed, open and partially open states without relaunching. Add rotation, the keyboard, sheets, Split View and larger text to the same reproduction.

Can an iPhone Duo layout issue cause an App Store rejection?

Yes, if the layout makes a required flow unusable or prevents review under guideline 2.1. Guideline 4.2 covers minimum functionality. A lack of custom Duo optimisation alone does not establish either violation.

Decide the next step

A compatibility pass is finished when the agreed tasks work across the tested configurations and the remaining limitations are explicit. Keep the reproduction list with the release so the next layout change can be checked against the same evidence.

Request an iPhone Duo compatibility review