Λογότυπο Iphone Duo Adaptive Layout

Iphone Duo Adaptive Layout

Κοινότητα
mirzaaghazadeh
iphone-duo-adaptive-layout

Build layouts that adapt to the iPhone Duo fold using reserved regions, division and occlusion regions, displacement patterns, and the split and overlay ArrangementView containers. Use when content or controls land in the fold, when building a split-like or overlay layout, or when custom manually-positioned UI must avoid the hinge or the under-display camera.

Επισκόπηση

Εκδότηςmirzaaghazadeh
Αποθετήριοiphone-duo-skills
Όνομα δεξιότηταςiphone-duo-adaptive-layout
Αστέρια
188
Διακλαδώσεις
9
Συνοδευτικά αρχεία
Μόνο οδηγίες
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Αυτοτελής

    Όλα όσα χρειάζεται το μοντέλο περιλαμβάνονται στις οδηγίες — χωρίς επιπλέον αρχεία για συγχρονισμό.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό mirzaaghazadeh. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Iphone Duo Adaptive Layout στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/mirzaaghazadeh/iphone-duo-skills/tree/main/skills/iphone-duo-adaptive-layout
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

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-adaptive-layout .claude/skills/iphone-duo-adaptive-layout
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Iphone Duo Adaptive Layout σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Iphone Duo Adaptive Layout μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Iphone Duo Adaptive Layout δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Adaptive layouts around the fold

When iPhone Duo is partially folded the inner display curves through the middle. Anything sitting in that curve gets harder to read and much harder to tap. The same thing happens to a photo printed across the spine of a book: near the gutter it stops reading as one continuous image.

So the fold is not decoration. It is a real constraint on where content can go — and iOS models it as a reserved region you can query and design around.

Reserved regions

Reserved regions are areas of the view that hardware imposes on your layout. Treat them exactly like the window controls you already work around on iPadOS: not obstacles, just facts about the available space.

Two kinds, and the distinction matters:

Division regions split one area into several smaller usable areas. The fold is a division region. Content does not flow through it — it belongs on one side or the other.

Occlusion regions cover part of an area without splitting it. Think of them as frames sitting inside your bounds. The inner FaceTime camera is an occlusion region.

Concretely, iPhone Duo has three reserved regions, and it's worth knowing which is which because they behave differently:

RegionKindWhen it's there
Outer front cameraocclusionAlways. Sits in the corner, aligned with the side controls, and expands into the Dynamic Island for Live Activities.
Inner front cameraocclusionOnly while that camera is active. It's under the display and invisible otherwise; when it activates, UI moves aside to reveal it.
The folding regiondivisionOnly while the device is partially folded, dividing the inner display and excluding the curved centre.

Regions are active or inactive:

  • The fold's division region is active only while the device is actually folded. Flat, it is inactive and has zero width.
  • The camera's occlusion region is active only while that camera is streaming.

Note the asymmetry between the two cameras: the outer one is a permanent fact of your layout, while the inner one appears and disappears under you. Handle the second as a change you animate through, not a constant you read once.

The Tech Talks say you get only the active ones by default — though the API reference describes the query as returning intersecting regions regardless of active state, so filter on isActive yourself when it matters. Pass the includeInactive option to also see regions that exist but aren't currently in play — which is what you want for stable, high-level decisions. A grid, for instance, can prefer an even column count on any device that has a fold, so the layout doesn't reshuffle every time the user bends the device.

Querying them

In SwiftUI, get a GeometryProxy from GeometryReader or onGeometryChange, then ask it for reserved regions. Note the two signatures differ — SwiftUI takes a third parameter UIKit doesn't:

swift
// SwiftUI, on GeometryProxy
func reservedRegions(
    kind: ReservedRegion.Kind,
    options: ReservedRegion.QueryOptions,
    layoutDirectionBehavior: LayoutDirectionBehavior
) -> [ReservedRegion]

// UIKit, on UIView
func reservedRegions(
    kind: UIView.ReservedRegion.Kind,
    options: UIView.ReservedRegion.QueryOptions = []
) -> [UIView.ReservedRegion]

The layoutDirectionBehavior argument matters in right-to-left layouts: the fold is fixed in hardware, so whether you want region positions mirrored with your content or left in physical coordinates is a decision you have to make rather than inherit.

Pass .includeInactive in options to also get regions that exist but aren't currently active.

Each region gives you more than a rectangle:

  • frame — where it sits in the view's coordinate space.
  • isActive (active in Objective-C) — whether it's currently in play.
  • kind — division or occlusion.
  • margins — the clearance the system keeps for interactive content. The reference is explicit that frame already includes these margins, so keeping controls out of frame is enough; don't pad by margins a second time. Inset frame by margins to get the bare hardware area — the limit for full-bleed media, which may run closer than controls.

In SwiftUI the query takes a third parameter, layoutDirectionBehavior (default .mirrors), which flips region frames for right-to-left layouts so a custom Layout doesn't have to. Pass .fixed for the physical frames.

Query reserved regions for custom, manually laid out controls. If you are using system containers, you already have this handled — see below.

Displacement: the design pattern

Most interfaces can simply flow around a reserved region. Some deserve a more deliberate response, and the pattern for that is displacement — adjusting an element's frame based on the available space so that important content stays visible, reachable and unobstructed while the device is folded.

The typical case: an element sits centered while the device is open, and once folded it moves into whichever region actually supports its purpose.

Choose the right scope. Displacement scales from a single button to an entire container. If an element can stand on its own, move it alone. If elements work as a unit, move them together — pulling a context menu away from the photo it belongs to breaks the relationship even though both are technically visible.

Don't move things far. Distance weakens the visual link between an element and its source. Aligning both around the fold usually beats banishing one to the far region.

Don't displace continuously scrolling content. Articles, feeds, documents, lists — these already adapt by scrolling. Relocating them between regions interrupts continuity and gains nothing. Scrollable content is also exempt from fold avoidance generally; it's fine for it to pass under the curve.

Where things should move

Let purpose decide, and note that purpose changes with pose:

  • Folded like a book — send transient things such as alerts to the trailing side, near where they will continue to appear as the device closes onto the outer display.
  • Propped on a table — the top region is for content that reads at a distance; the bottom region is the stable surface, so tappable controls belong there.
  • When several regions would work — pick the contextual one. A focused search field should stay over the view it is searching, adapting its width and position as the device folds, exactly as it stays over the keyboard on iPhone.

How things should adapt once moved

Position and size are the usual changes, but not the only ones. A split view can keep both columns visible by rebalancing to an even 50/50 split. A grid can hold its outer margins and simply widen the gap at the hinge, keeping every cell whole and inside one region.

The through-line: you are moving, resizing and reorganizing what is already there — never removing it. Every piece of content, every function, every layout stays reachable no matter how the device is being held.

Containers that adapt for free

Before writing any of this yourself, check whether a system container already does it:

  • Navigation — NavigationStack, NavigationSplitView, TabView
  • Content — List, ScrollView
  • Presentations — action sheets, alerts, menus, popovers all reposition themselves around reserved regions automatically

Arrangements

Between navigation containers and content containers sits a third kind: a layout container that arranges exactly two views by rule. That's an arrangement, new in iOS 27.1.

The rule is a function. Inputs: horizontal and vertical size class, the view's width-over-height aspect ratio, and whether any division region is currently active. Outputs: whether each view is shown at all, and what frame it gets.

Building one

In SwiftUI, put an ArrangementView inside your NavigationStack and give it a primary and a secondary view. In UIKit, use UIArrangementViewController as the root of a UINavigationController and assign view controllers to the .primary and .secondary placements.

The split style

The default. It divides the bounds between the two views — horizontally when the view is wider than tall, vertically when taller than wide.

Constrain it when only one axis makes sense: apply .axes(.horizontal) to the split style. In UIKit, configure UISplitArrangement the same way and pass it to updateArrangement(_:animated:) — note the arrangement methods take an animated: flag, as does setViewController(_:for:animated:). When a split arrangement can't split along the view's primary axis, it shows a single view rather than producing a bad layout.

The payoff on this device: when the secondary view is dismissed, the primary doesn't recenter across the whole display the way it would on iPad. It stays inside the region the fold defines, so its controls stay reachable and clear of the curve.

The overlay style

Where split prefers side-by-side, overlay prefers stacking one view above the other — and moves them side-by-side when the device folds, which is exactly when the stacked view would otherwise get cramped.

Precisely: with no active division region — closed, or fully open — the primary view sits on top of the secondary. Once partially folded, the primary moves to the trailing or bottom region relative to the fold, and the secondary to the leading or top. That ordering is worth internalising before you pick which view is primary: the primary is the one that ends up where the thumb is, not the one that gets the larger area.

Because the relationship changes with the pose, you often want to change the subordinate view's presentation to match. Read the stacking state and adapt: in SwiftUI, the overlayArrangementZIndex environment value; in UIKit, state(for:) on the arrangement view controller and then its zIndex. A list that is collapsed while stacked can expand once it's given its own region.

Choosing between them

Follow the pattern the app already uses. Something built from HStack/VStack maps to split; something built from ZStack maps to overlay. Both translate directly and bring iPhone Duo support with them.

With no existing pattern to follow, ask what the relationship between the two views is:

  • Foreground over background, where partial obscuring is acceptable — overlay. Controls floating over readable content that scrolls beneath them is the canonical case.
  • Main and detail, where neither may ever be obscured — split. A player and its transcript is the canonical case.

When not to use one

  • Arrangements provide no navigation infrastructure. Don't put a NavigationSplitView or similar inside one.
  • Don't nest an arrangement inside List or ScrollView.
  • If you need expanding and collapsing column behavior, you want a real split view, not an arrangement.

A working order

  1. Audit centered layouts. Would a two-column layout be better? If not, which displacement pattern applies?
  2. Prefer system containers and presentations — most adaptation is free.
  3. Where the app has a custom horizontal split or overlay, replace it with ArrangementView. You gain iPhone Duo behavior across every supported device, not just this one.
  4. Only then, for the highest-priority manually positioned controls, adopt the reserved-region APIs and implement displacement by hand.

For hinge-driven interaction rather than layout, see ../iphone-duo-hinge-and-scenes/SKILL.md — live hinge angle is the wrong tool for laying out views, and the right one for driving effects.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Iphone Duo Adaptive Layout;

Build layouts that adapt to the iPhone Duo fold using reserved regions, division and occlusion regions, displacement patterns, and the split and overlay ArrangementView containers. Use when content or controls land in the fold, when building a split-like or overlay layout, or when custom manually-positioned UI must avoid the hinge or the under-display camera.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Iphone Duo Adaptive Layout στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Iphone Duo Adaptive Layout είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Iphone Duo Adaptive Layout στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/mirzaaghazadeh/iphone-duo-skills/tree/main/skills/iphone-duo-adaptive-layout. Το TypingMind διαβάζει το αρχείο SKILL.md και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Iphone Duo Adaptive Layout;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Iphone Duo Adaptive Layout;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Iphone Duo Adaptive Layout με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Iphone Duo Adaptive Layout;

Δημοσιεύεται στο GitHub από τον λογαριασμό mirzaaghazadeh. Ελέγξτε το αποθετήριο για τους όρους αδειοδότησης. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇