iphone-duo-layout
Skill4 starsChanged 2 months agoMITView on GitHub
Implement or review fold-aware SwiftUI and UIKit content layouts for iPhone Duo using reserved regions (fold divisions and camera occlusions), ArrangementView or UIArrangementViewController split and overlay arrangements, size classes, and asymmetric safe areas. Use when content or controls collide with the fold or the inner camera, a two-pane or media layout must adapt as the device folds, opens, closes, or rotates, or navigation, selection, and scroll state are lost during those changes.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Urbanrenewalroridula3044/iPhone-Duo-Agent-Skilltheir own version, first seen Oct 20, 2026
- alexey1312/iPhone-Duo-Agent-Skilltheir own version, first seen Oct 9, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- alexey1312/iPhone-Duo-Agent-Skill★ 6same name
- Urbanrenewalroridula3044/iPhone-Duo-Agent-Skill★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- iphone-duo-cameraSkill
- iphone-duo-designSkill
- iphone-duo-developmentSkill
- iphone-duo-readinessSkill
- iphone-duo-scenesSkill
- iphone-duo-testingSkill
- iphone-duo-toolbarsSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Read layout evidence before choosing a Duo-specific container.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
iPhone Duo layout
Read layout evidence before choosing a Duo-specific container. The arrangement and reserved-region APIs need the iOS 27.1 SDK. With an older SDK, improve the existing resizing behavior and document the deferred adoption; do not insert unresolvable symbols behind runtime availability checks.
Choose the right boundary
Identify whether the problem belongs to navigation, the relationship between two content panes, or an individual custom control. Keep navigation responsible for routes and selection, outside any arrangement. Keep the content container responsible for pane presentation. A layout change should not restart a network task or create a second document model.
Inventory persistent state before moving view boundaries. Keep models at a stable owner, preserve item IDs, and avoid assigning identity from transient geometry. For imperative layout, recompute from the current view's bounds and insets; verify coordinate conversions when an overlay lives elsewhere in the hierarchy.
Adapt only what needs adaptation
Start with the system container that fits the content; alerts, menus, sheets, and split views already move around the fold. Use an arrangement only when the layout already resembles one: side by side or stacked maps to split, layered maps to overlay. For a custom layout, query reserved regions instead of recreating a fold from guessed angles, midpoints, or physical dimensions.
- Filter regions on
isActivefor current avoidance. Use.includeInactiveonly to plan, for example to prefer an even number of grid columns. - Region frames already include their margins. Keep all geometry in one coordinate space, and check right-to-left layout.
- Move only what must move to stay visible and easy to tap. Scrolling content can cross the fold; critical touch targets should not sit in it.
Make the narrow fallback explicit: when one pane is hidden, provide a way to reach it and preserve its state. Test at intermediate sizes, with a keyboard, and with large text. Avoid a feedback loop where measuring a child changes its parent size indefinitely.
Verify the user's task
Exercise a realistic transition while editing, playing media, or navigating. Check selection, focus, scroll continuity, and operation count alongside visual placement. Test existing non-Duo targets too.
Report the chosen container, state owner, fallback behavior, actual SDK and build result, and runtime evidence. Keep documentation-only guidance distinct from code compiled and exercised in the user's project.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

