Duo System Surfaces 标志

Duo System Surfaces

社区
Kimeur
duo-system-surfaces

Widgets, Live Activities, StandBy and Controls for apps on iPhone Duo, Apple's foldable. Use it when you build or check a widget extension, a Live Activity, a Dynamic Island presentation, a StandBy layout or a Control Center or Lock Screen control, and the app runs on iPhone Duo. Covers the redesigned Dynamic Island in the side column of the outer and inner display, which grows down that column as Live Activities arrive and takes room from the app's own vertical bars (measured: about 84 pt closed, 94 pt open); isDynamicIslandLimitedInWidth (iOS 27, names iPhone Duo) for narrow compact and minimal views that fit a 28 pt circle; StandBy on either display, even when not charging; two Home Screen pages and Today View; widget families, including the new systemExtraLargePortrait, where Apple's pages disagree; controls with no Action button on Duo; deep links that work closed and open. Says what Apple has not published, what the simulator cannot run (StandBy, most app extensions) and what to test on a device.

概览

发布者Kimeur
代码仓库duology
技能名称duo-system-surfaces
星标数
40
复刻数
2
附带文件
3
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 3 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Kimeur 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Duo System Surfaces AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Kimeur/duology/tree/main/plugins/duology-features/skills/duo-system-surfaces
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Kimeur/duology.git /tmp/duology
mkdir -p .claude/skills
cp -r /tmp/duology/plugins/duology-features/skills/duo-system-surfaces .claude/skills/duo-system-surfaces
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Duo System Surfaces,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Duo System Surfaces。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Duo System Surfaces 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

duo-system-surfaces

The system draws your widgets, Live Activities and controls, not your app. On iPhone Duo it draws them in new places: a Dynamic Island in the side column of both displays, two Home Screen pages with Today View, StandBy on either display. You can't lay these places out. Your job is to give each presentation content that still reads when the system makes it narrower, taller or bigger, and to check on a device what the simulator can't show.

Load neighbours when the task needs them: duo-navigation (your app's bars, which share the side column with the island), duo-continuity (opening the right screen from a tap), duo-swiftui-27 (visibilityPriority and the other iOS 27 toolbar APIs).

Labels: measured means we ran it on the iPhone Duo simulator (iOS 27.1, 20 October 2026). Unverified means we could not confirm it. Not published means Apple has said nothing about it as of 20 October 2026. Everything else links to Apple. Runs: references/evidence.md. Sources: reference/sources.md.

What Apple has said about iPhone Duo

ClaimSource
The side column of both displays holds the status bar and the Dynamic Island. The island is redesigned to fit vertically there and expands to show Live Activities and alerts.Newsroom, Tech Talk 111466, HIG
On the outer display the island grows out of the front camera's region, which is always present.HIG
App bars share that column with Live Activities and the status bar. When room runs out, app items collapse into the overflow menu.Tech Talk 111466
The system draws compact and minimal Live Activity views narrower on iPhone Duo (and on iPhone held sideways). Read isDynamicIslandLimitedInWidth (iOS 27.0).doc
Where width is limited (which the doc above says includes iPhone Duo), compact and minimal views should fit a 28 pt circle. A leading view alone is fine; the system then hides the trailing one.HIG: Live Activities (updated 13 Oct 2026)
Open, the display shows two Home Screen pages, with Today View (a scrolling list of widgets) on the left. The Dock and Lock Screen controls sit on the side.Newsroom
Set down, iPhone Duo enters StandBy on the outer or the inner display, even when it isn't charging.Newsroom
iOS 27 adds the systemExtraLargePortrait widget family to iOS.doc, WWDC26 session 277
The spec page lists volume buttons, Camera Control and the side button, and no Action button.Specs

What Apple has not published

  • Widget sizes in points on either display. The HIG's iOS widget table has no iPhone Duo row (HIG: Widgets).
  • Which families each Home Screen offers. The HIG's family table says iPhone supports neither extra-large family; the API doc and session 277 say systemExtraLargePortrait comes to iOS 27. Whether Duo offers it is unverified.
  • How compact, minimal and expanded views are laid out in a vertical island, how several activities stack there, and their sizes. The HIG's Live Activity table lists two iPhone screen sizes only.
  • StandBy on Duo: sizes, which faces go on which display, how a widget or Live Activity looks there.
  • Anything about controls on Duo. The HIG's Controls page has not changed since June 2024.
  • An iOS 27 entry on the WidgetKit or ActivityKit updates pages. The two iOS 27 additions above (isDynamicIslandLimitedInWidth, systemExtraLargePortrait) appear only in the SDK and the symbol docs. The ActivityKit interface in the iOS 27.1 SDK has no iOS 27 symbols.

What the simulator can and can't show

Xcode 27.1's release notes list two limits of the iPhone Duo simulator: StandBy is unavailable, and most app extensions can't run or be debugged (release notes). Widgets, Live Activity views and controls are app extensions.

Measured:

  • Activity.request succeeded from the app, and the activity reported .active.
  • With the app in front, its own activity took no room in the side column.
  • With Settings in front, the island's content never appeared in screenshots, but the side column made room for it. The status bar's clock moved down from 87 to 171 pt closed (about 84 pt) and from 34 to 128 pt open, held wide (about 94 pt).
  • Closed, the Home Screen put the Dock and the search button in the side column. The widget gallery opened on the outer display and listed the app's widget.

Use Xcode Previews for each widget family and island presentation, and a real iPhone Duo for StandBy and the vertical island. Details: references/evidence.md.

Rules

  1. Never hard-code a widget, island or StandBy size. Apple says widget sizes vary by device (WidgetFamily) and publishes none for Duo.
  2. Give every compact and minimal view a limited-width form. On Duo it is the normal case, not an edge case.
  3. Make the Lock Screen view work scaled up and without its background, for StandBy on either display.
  4. Offer several widget families. Add systemExtraLargePortrait behind if #available(iOS 27.0, *), with content that grows by rows, not by a fixed height.
  5. Rank your toolbar items. A running Live Activity takes height from the column your vertical bar uses.
  6. Route every tap to state that both layouts read. The app may open closed or open.
  7. Don't promise an Action button on Duo. Offer controls for Control Center and the Lock Screen.

1. Live Activities in the side column

Write the narrow form first. isDynamicIslandLimitedInWidth is iOS 27 only and read-only, so wrap it when the extension deploys lower. iPhone Duo always runs iOS 27.1, so the fallback runs only on other iPhones.

swift
import SwiftUI
import WidgetKit

// requires: MinutesLeftLabel (references/live-activities.md)

/// Narrow on iPhone Duo and on iPhone held sideways.
struct MinutesLeft: View {
    let minutes: Int

    var body: some View {
        if #available(iOS 27.0, *) {
            LimitedAware(minutes: minutes)
        } else {
            MinutesLeftLabel(minutes: minutes, limited: false)
        }
    }

    @available(iOS 27.0, *)
    private struct LimitedAware: View {
        let minutes: Int
        @Environment(\.isDynamicIslandLimitedInWidth) private var isLimited

        var body: some View {
            MinutesLeftLabel(minutes: minutes, limited: isLimited)   // the number alone when limited
        }
    }
}
  • Use it for compactTrailing and minimal. Keep compactLeading to one symbol, or drop the trailing view when no short form makes sense (HIG).
  • Keep the expanded view's elements in the same places as the compact ones. Its layout in the vertical island is not published; test it on a device.
  • End the activity when the task ends. While it runs, it takes height in the side column that other apps' vertical bars use (section 5).
  • Full ActivityConfiguration, previews, the StandBy background and the deep link: references/live-activities.md.

2. StandBy on either display

On iPhone, StandBy shows a Live Activity as its minimal view; a tap shows the Lock Screen view scaled up 2x. Widgets in StandBy are the small family, scaled up, without their background (HIG: Live Activities, HIG: Widgets). On Duo that can happen on the 5.4-inch outer display or the 7.6-inch inner display. Apple publishes no StandBy sizes for either.

  • Draw the Lock Screen view's background only when showsWidgetContainerBackground is true. Set activityBackgroundTint(_:) so StandBy fills the screen with your colour (session 223).
  • Keep the widget background removable (the default), or the widget can't appear in StandBy.
  • Use large type and few elements; people read StandBy from across a room.
  • In low light, StandBy tints widgets red. Don't carry meaning in colour alone.
  • StandBy is unavailable in the iPhone Duo simulator. Test it on a device, on both displays.

3. Widgets on two Home Screens

Closed, your widget sits on the outer display's Home Screen. Open, it can sit on either Home Screen page or in Today View. Apple has not published the sizes, so lay out by family and let content grow or shrink.

swift
import SwiftUI
import WidgetKit

// requires: ShelfProvider, ShelfWidgetView (references/widgets-and-controls.md)

struct ShelfWidget: Widget {
    var body: some WidgetConfiguration {
        StaticConfiguration(kind: "shelf", provider: ShelfProvider()) { entry in
            ShelfWidgetView(entry: entry)          // ViewThatFits: more rows where there is room
                .containerBackground(.fill.tertiary, for: .widget)
                .widgetURL(URL(string: "reader://shelf"))
        }
        .configurationDisplayName("Reading shelf")
        .supportedFamilies(Self.families)
    }

    static var families: [WidgetFamily] {
        var list: [WidgetFamily] = [.systemSmall, .systemMedium, .systemLarge, .accessoryRectangular]
        if #available(iOS 27.0, *) {
            list.append(.systemExtraLargePortrait)   // new tall family; whether Duo offers it is unverified
        }
        return list
    }
}
  • Design one widget for both displays. The same family can appear on either, and nothing in WidgetKit tells a widget which display it is on.
  • A tap opens the app on the display in use. Route widgetURL(_:) to state that the compact and the regular layout both read, not to a screen that exists in one of them (duo-continuity). Code: references/live-activities.md.

4. Controls

Controls (ControlWidgetButton, ControlWidgetToggle) appear in Control Center and on the Lock Screen (HIG: Controls). On Duo, Lock Screen controls sit on the side (Newsroom), and the spec page lists no Action button. Build controls as on any iPhone. Don't write help text that tells Duo owners to put one on the Action button. Example: references/widgets-and-controls.md.

5. Your bars share the column with the island

Your vertical toolbar and tab bar live in the same column as the island and the status bar. A Live Activity from any app can take height from your bar while your app runs. Measured: one activity pushed the status bar down by about 84 pt closed and 94 pt open. Rank items so the important ones stay:

  • .visibilityPriority(.high) on the actions people use most; .low on rare ones; ToolbarOverflowMenu for actions that always belong in the menu (duo-swiftui-27, duo-navigation).
  • Give every item a symbol and a title, so it reads well in the overflow menu.
  • Check it with a Live Activity from another app running, closed and open held wide, on a device. Unverified: we did not see an app's own bars next to another app's activity in the simulator.

Test it

  1. Previews: one #Preview(as: .systemSmall) (and one per family) per widget, and #Preview(as: .dynamicIsland(.compact), using:) plus .dynamicIsland(.minimal), .dynamicIsland(.expanded) and .content per Live Activity. Preview the limited-width form on its own at 28 pt.
  2. Simulator: start the Live Activity from your app, bring another app forward, and check that the activity reports active. Check your deep links closed and open.
  3. Device: StandBy on the outer and the inner display, the vertical island closed and open, several activities at once, widgets on both Home Screen pages and in Today View, controls in Control Center and on the Lock Screen.

Checklist

  • No fixed widget, island or StandBy sizes anywhere in the extension.
  • compactTrailing and minimal have a limited-width form behind isDynamicIslandLimitedInWidth, gated for iOS 27.
  • The limited form fits a 28 pt circle; the leading view alone still makes sense.
  • The Lock Screen view draws its background only when showsWidgetContainerBackground is true, and sets activityBackgroundTint(_:).
  • Widget backgrounds stay removable; StandBy content uses large type and doesn't rely on colour.
  • Widgets support several families; systemExtraLargePortrait only behind #available(iOS 27.0, *).
  • Widget views grow by rows with ViewThatFits, not by fixed heights.
  • Taps from widgets and Live Activities route to state that works closed and open.
  • Toolbar items carry visibility priorities, so a growing island overflows the right ones.
  • Live Activities end when the task ends.
  • No help text assumes an Action button.
  • Previews checked for every family and island presentation; StandBy and the vertical island checked on a device, or marked untested.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Duo System Surfaces AI 技能有什么作用?

Widgets, Live Activities, StandBy and Controls for apps on iPhone Duo, Apple's foldable. Use it when you build or check a widget extension, a Live Activity, a Dynamic Island presentation, a StandBy layout or a Control Center or Lock Screen control, and the app runs on iPhone Duo. Covers the redesigned Dynamic Island in the side column of the outer and inner display, which grows down that column as Live Activities arrive and takes room from the app's own vertical bars (measured: about 84 pt closed, 94 pt open); isDynamicIslandLimitedInWidth (iOS 27, names iPhone Duo) for narrow compact and m...

为什么在 TypingMind 中使用 Duo System Surfaces?

因为您只需安装一次,就能搭配任何模型使用。Duo System Surfaces 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Duo System Surfaces?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Kimeur/duology/tree/main/plugins/duology-features/skills/duo-system-surfaces。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Duo System Surfaces?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Duo System Surfaces 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Duo System Surfaces 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Duo System Surfaces AI 技能免费吗?

是的。Kimeur 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇