Docs/Reference/Platforms.md
简体中文 →View on GitHub ↗

Platform capabilities and verification scope

Updated: 2026-11-25. The tables below are compiled from bern-target-api and each backend's TargetDescriptor.features. macOS and iOS share one SwiftUI list; tvOS and watchOS share the SwiftUI generator with them, and their lists are given separately in the tvOS descriptor and watchOS descriptor.

The optional GPUI target (ui = "gpui", macOS, Windows, Linux) now reaches desktop feature parity with the native macOS, Windows, and Linux backends—including StatusItem, Switch(login_item:), native WebPage, built-in media executors with Video(controls:), all UI session commands, and bern package; see the GPUI platform guide.

Compile-time feature support

"Supported" means the backend declares that it accepts the corresponding feature; "Not applicable" means the backend also declares that it accepts it, but there is no corresponding behavior there (for example, TVs and desktop windows have no orientation to rotate), and using it reports neither an error nor a warning; "—" means not declared, and declarations that use the feature are rejected by the corresponding capability check. It does not mean that every property behavior, visual effect or device scenario has passed acceptance. Color overrides, motion, windows and media also have separate capability descriptions; full support cannot be inferred from this table alone.

Feature flag Capability macOS iOS tvOS Web Android Linux Windows
button_content Custom content inside buttons Supported Supported Supported Supported Supported Supported Supported
reveal Reveal on hover (always shown on targets without a pointer) Supported Supported — (always shown, warning) Supported Supported Supported Supported
toolbar_search Toolbar search Supported Supported Supported Supported Supported Supported Supported
search_results Search suggestion results Supported Supported Supported Supported Supported Supported Supported
session_actions Session field actions Supported Supported Supported Supported Supported Supported Supported
toggle_button Toggle button style Supported Supported Supported Supported Supported Supported Supported
dialog_windows Dialog windows Supported Supported Supported Supported Supported Supported Supported
bound_lengths State-bound lengths Supported Supported Supported Supported Supported Supported Supported
appearance Local light/dark appearance Supported Supported Supported Supported Supported Supported Supported
shortcuts Keyboard shortcuts Supported Supported Supported (remote buttons) Supported Supported Supported Supported
bound_shortcuts Shortcuts that follow state (shortcut: app.keys.x, Shortcut(key: app.keys.x)) Supported Supported Supported (remote buttons) Supported Supported Supported Supported
shortcut_input ShortcutInput for rebinding by pressing a key combination Supported Supported (hardware keyboard) Supported (display only) Supported Supported (hardware keyboard) Supported Supported
menu_bar App menu bar MenuBar, CommandMenu, CommandItem, window.menu_bar Supported Supported (iPadOS) Not applicable Not applicable Not applicable Supported Supported
status_item Status bar item StatusItem (tray icon and menu, can add "Open at Login", the icon can be the app's own monochrome SVG); the app stays there after the last window is closed Supported Not applicable Not applicable Not applicable Not applicable Supported Supported
runtime_palette Runtime semantic palette (WindowSet(palette:)); the light and dark colors of each semantic role can be replaced as a whole at runtime Supported Supported Supported — — Supported Supported
runtime_theme Runtime theme selection Supported Supported Supported Supported Supported Supported Supported
runtime_images Engine-provided images Supported Supported Supported Supported Supported Supported Supported
picture_fills Color picking from images and fade fills Supported Supported Supported Supported Supported Supported Supported
file_pick File picking Supported Supported — Supported Supported Supported Supported
scroll_snap Scroll snapping Supported Supported Supported Supported Supported Supported Supported
rails Proportional rail layout Supported Supported Supported Supported Supported Supported Supported
popover_button Popover button Supported Supported Supported (sheet) Supported Supported Supported Supported
text_weights Text weight styles Supported Supported Supported Supported Supported Supported Supported
text_lines Text line limit Supported Supported Supported Supported Supported Supported Supported
image_corners Image corner radius Supported Supported Supported Supported Supported Supported Supported
sidebar_width Fixed sidebar width Supported Supported — (system width, warning) Supported Supported Supported Supported
controlled_values Engine-controlled values for Switch / Picker / Slider / ColorPicker Supported Supported Supported Supported Supported Supported Supported
controlled_text TextInput(current:) engine-controlled text, keeping the user's input while editing Supported Supported Supported Supported Supported Supported Supported
table Table Table: columns, selected rows, sorting by clicking a header, row menus and primary action Supported Supported Supported (one column of row buttons) Supported Supported (Material data table) Supported Supported
paste paste: on Button, IconButton, MenuItem, CommandItem, which first puts the clipboard text into the draft Supported Supported — Supported Supported Supported Supported
watch Watch(value:) => command(): runs the action on mount and when the value changes, telling the engine the draft Supported Supported Supported Supported Supported Supported Supported
login_switch Switch(login_item: true): the system's "Open at Login", the same item as the one in the status bar item's menu Supported Not applicable Not applicable Not applicable Not applicable Supported Supported
search_palette Search command palette Supported Supported Supported Supported Supported Supported Supported
image_template Template images Supported Supported Supported Supported Supported Supported Supported
adaptive_images Image aspect ratio and independent grid row spacing Supported Supported Supported Supported Supported Supported Supported
scaled_scene ScaleBox / Positioned / Marquee, dynamic font size Supported Supported Supported Supported Supported Supported Supported
accordion_layout Accordion column layout Supported Supported Supported Supported Supported Supported Supported
capsule_controls Capsule controls and ControlGroup Supported Supported Supported Supported Supported Supported Supported
modal_flow_timer Modal / Flow / Timer / PickerOption Supported Supported Supported Supported Supported Supported Supported
page_badges Navigation and module page counts Supported Supported Supported Supported Supported Supported Supported
edge_grow Grow-from-edge transition Supported Supported Supported Supported Supported Supported Supported
delayed_appear Delayed entrance Supported Supported Supported Supported Supported Supported Supported
toolbar_leading Toolbar leading items and text Supported Supported Supported Supported Supported Supported Supported
axis_padding Per-axis padding Supported Supported Supported Supported Supported Supported Supported
icon_menus Icon-only menus Supported Supported Supported Supported Supported Supported Supported
icon_labels Icon-only Label Supported Supported Supported Supported Supported Supported Supported
icon_tabs Icon-only tabs (Tab(display: icon)), with label as the accessible name; targets that do not declare it show the icon together with the title and warn Supported Supported Supported Supported Supported Supported Supported
row_baseline Text baseline alignment within a row Supported Supported Supported Supported Supported Supported Supported
sidebar_header Fixed sidebar header bar Supported Supported Supported Supported Supported Supported Supported
untitled_detail Untitled detail Supported Supported Supported Supported Supported Supported Supported
idle_control Turning idle detection on and off by state (Window(idle_enabled:)) Supported Supported Supported Supported Supported Supported Supported
quiet_shortcuts Shortcuts that are no input for idle detection (Shortcut(quiet:)) Supported Supported Supported Supported Supported Supported Supported
app_icons The application's own icons: icon: "icons/play.svg" names a declared SVG, outlined at build time and drawn in the control's foreground colour Supported Supported Supported Supported Supported Supported Supported
popup_placement placement: above / below of Menu, PopoverButton and Tooltip Supported Supported Supported Supported Supported Supported Supported
tooltip_keys Tooltip(keys:): the shortcut in key caps after the tip's text (appended in .help(...) on SwiftUI) Supported Supported — Supported Supported Supported Supported
vertical_sliders Upright sliders (Slider(axis: vertical)) Supported Supported Supported Supported Supported Supported Supported
hold_shortcuts Keys told apart by how long they are held (Shortcut(hold:, hold_after:)) Supported Supported — Supported Supported Supported Supported
native_lists Lists passed into a native view (NativeValue(value:) with a Vec) Supported Supported Supported Supported Supported Supported Supported
switch_knob Custom switch knob colour (Switch(variant:) foreground) — (system knob, warning) — (system knob, warning) — (system knob, warning) Supported Supported Supported Supported
bold_menus Bold menu trigger text (Menu(bold: true)) Supported Supported Supported Supported Supported Supported Supported
fill_buttons System buttons that fill the container horizontally (Button(width: fill)) Supported Supported Supported Supported Supported Supported Supported
page_search A system search field in the page (Search not inside a Toolbar / Sidebar), with results listed below the field Supported Supported Supported Supported Supported Supported Supported
window_short Window height below the compact breakpoint (window.short), such as a phone in landscape Supported Supported Supported Supported Supported Supported Supported
window_landscape Turning to landscape or portrait on phones by state (Window(landscape:)), such as turning sideways when the player opens Not applicable Supported Not applicable Supported (when the browser allows locking the orientation) Supported Not applicable Not applicable
modal_cover A modal that covers the whole window in compact windows (Modal(cover: compact)), such as full-screen flows on phones Supported Supported Supported Supported Supported Supported Supported
form_layout Form layout: Section(style: plain) title groups, row padding, Form(gap:, row_height:) Supported Supported Supported Supported Supported Supported Supported
tab_accessory A bar that stays with the tabs (TabAccessory), such as a mini player; from iOS 26.1 on, the system accessory above the tab bar Supported Supported Supported Supported Supported Supported Supported
grid_cells Grids whose row height is set from the column width (Grid(cell_ratio:, cell_extra:)), with cell content top-aligned and able to extend into the row spacing Supported Supported Supported Supported Supported Supported Supported
size_classes Four-tier size adaptation Supported Supported Supported Supported Supported Supported Supported
text_formats Plural branches, dates and durations in text, and enum labels that display variant fields (see Text, content and formatting) Supported Supported Supported Supported Supported Supported Supported
pointer_events DoubleTap and ContextMenu on any visible element besides Button Supported Supported Supported Supported Supported Supported Supported
wheel WheelUp and WheelDown mouse wheel or trackpad scrolling on elements Supported Supported — (ignored, warning) Supported Supported Supported Supported
hover Hover(delay:) pointer hover actions on elements — (ignored, warning) — (ignored, warning) — (ignored, warning) — (ignored, warning) — (ignored, warning) — (ignored, warning) — (ignored, warning)
slider_hover Slider(hover:) reporting the pointer position along the track as Option<f64> Supported Supported — (stays None, warning) Supported Supported Supported Supported
player_state Reading players.<id>.<field> directly in declarations Supported Supported Supported Supported Supported Supported Supported
scroll_anchor Keeping the anchored item at a fraction of the scroll view (ScrollView(anchor:)) Supported Supported — Supported Supported Supported Supported
scroll_browsing Reporting manual scrolling in a session bool (ScrollView(browsing:)) Supported Supported — Supported Supported Supported Supported
bound_blur Dynamic blur driven by a numeric expression (blur:) Supported Supported — Supported Supported Supported Supported
text_bold Conditional bold weight on Text(bold:) Supported Supported Supported Supported Supported Supported Supported
cover_images Cropped cover images filling a container (Image(fit: cover)) Supported Supported Supported Supported Supported Supported Supported
web_content_mode WebPage(content_mode: mobile / desktop) independent of user_agent — (warning) — (warning) — — (warning) — (warning) — (warning) — (warning)
native_view Co-located platform-native UI views (NativeView) with declared CLI control entries and Fallback Supported Supported Supported Supported Supported Supported Supported

Capabilities not fully expressed by the feature flags above

Capability Current scope
Window(idle_enabled:) All six targets consume the on/off state (capability idle_control): when it is false, window.idle stays false and no time is counted; when it becomes true, timing restarts
Idle area (idle_area) The motion capabilities of all targets (including GPUI) declare it. On macOS, Web, Android, Linux, Windows and GPUI, when the page has an idle area, the window goes idle when the mouse rests over the idle area for its own delay, keeps awake while resting elsewhere inside the window, and falls back to the window's idle_after once the pointer leaves the window; touch, remote and keyboard still follow idle_after; on iOS and tvOS the idle area does not change the timing (also on an iPad with a mouse attached)
Window(landscape:) on the web Locks to landscape through the Screen Orientation API: browsers lock only on phones and tablets, most also require the page to be full screen or running as an installed app, and Safari on iOS does not offer locking; when refused, the device orientation is kept and the request is made again on entering full screen. Covered by runtime tests, not measured in a phone browser
Image Hero across split columns macOS uses a window-level overlay, Web uses a viewport-level copy; iOS and other macOS views keep using matched geometry. Continuous-frame handoff for Video is verified separately
Local persistence The native FFI host provides file storage, and the Web app uses same-origin localStorage; nothing is persisted when no storage host is installed
Optional Svg All targets (macOS, iOS, tvOS, watchOS, Android, Wear OS, Windows, Linux, GPUI, Web) compile animated SVGs to BSVG bytecode and render them in-process via pure-Rust bern-svg with zero WebView dependency; static SVGs lower to build-time PNG Images. See Animated SVG
Per-platform app icons ([app.icon]) All seven targets accept a square PNG and their own native format: macOS .icns, iOS .appiconset (both also accept Icon Composer's .icon, the Liquid Glass icon from 26 on), tvOS .brandassets (when not declared, the layered icons and the top shelf image are generated from the default icon), Windows .ico, Linux hicolor icon theme, Android res, Web page icon folder or SVG; checked at the configuration stage and used as is during generation. Rules in Windows, resources, and files
SidebarHeader(role: title) Not shown on WinUI 3 and system XAML (the title bar already shows the app icon and title); not shown on GTK (the sidebar's title bar already shows the app name, and KDE, following its button layout, also shows the app icon at the leading edge); other targets show it as usual
TV layout (Layout(size: tv), window.tv) tvOS is always a TV: at build time only the tv layout is kept and pruned by the known window conditions (measured). Android decides by the system's TV mode or the leanback feature, and Web by the user agent of TV browsers; not verified on TV devices. On macOS, iOS, Windows and Linux it is always false, and the tv layout is not generated
Shortcut Shortcuts without a control, generated on six targets: keyboard shortcuts on macOS, iOS, Web, Android, Linux and Windows; remote buttons on tvOS and Android TV (escape is back, space is play/pause, arrow keys are directions when focus has nowhere to move). A disabled shortcut yields its key to the one shown before it (covered by Web runtime tests). Arrow keys measured on the tvOS simulator; back and play/pause, Android TV, and the keys on other targets not measured
TV font size (font(tv:) in a text block) tvOS takes the TV font size at build time (measured on the simulator); Android and Web take it when the runtime decides it is a TV (Web switches through the bern-television class; not verified on TV devices); macOS, iOS, Windows and Linux are unaffected. Covered by each backend's generator tests
Text session actions (push_str, pop) Generated on six targets; input and deletion measured through the on-screen keyboard on the tvOS simulator; SwiftUI type-checked for tvOS and macOS, Compose compiled with the Android build, GTK compiled on the Ubuntu VM, WinUI 3 compiled on the Windows PC
Search(suggest: true) Lists results before anything is typed: SwiftUI and Web when focused, and on TV at all times (measured on the tvOS simulator); Compose's toolbar search page lists them on opening anyway; GTK and WinUI 3 pop them up when focused. Interaction not measured outside tvOS
Performance tracing (BERN_TRACE, trace.*, bern run --trace) The shared Rust side is the same for all targets: rules and filters, recording and aggregation, the timeline, session commands, and the spans of the engine (queueing, execution, snapshots, comparison, module calls, span!) and the bridge (decoding, per-field encoding, callback triggering). Instrumentation on each frontend's UI thread is not yet hooked up, so interaction chains and long frames do not appear yet. See Performance tracing
default_focus Button / IconButton takes focus when it appears, generated on six targets: on tvOS it is the preferred focus of the focus section (measured on the simulator), macOS / iOS use FocusState, Web calls focus(), Compose uses FocusRequester, and GTK and WinUI 3 request focus after the control is shown; not measured outside tvOS; GTK compiled on an Ubuntu 24.04 VM and passed Clippy and the type check of the generated app, and WinUI 3 compiled the generated gallery with MSVC on the Windows PC
Automatic skeleton screens Compile-time skeleton projection on Query (default when loading: is omitted), skeleton: <bool> containers and explicit Skeleton primitives across all six backends, with 120 ms anti-flicker delay, gentle pulse, reduced-motion support and unified assistive announcements. See Automatic skeleton screens
Built-in window screenshot (window.screenshot) Built-in session command window screenshot --output <path> capturing live window PNGs directly through the app CLI on desktop, mobile, watch and Web backends without external screen-capture permissions
In-process JavaScript & bern.cli Opt-in javascript = true per target: in-process Boa on all native targets (including GPUI and watches) with zero hidden WebView processes, and Web Worker on web_mode = "app". Exposes globalThis.bern.cli(...) directly against the command catalog with host-side CliPolicy allowlist/denylist rules (allow_all by default). See JavaScript and bern.cli

Verification of recently added capabilities

This section describes only capabilities added from 2026-10-15 to the 25th; historical acceptance of existing platforms is in each implementation notes document. A successful build does not substitute for interaction on real devices.

Scope Code / build evidence Actual interaction scope
Multi-page app layout, controls and image Hero on macOS App build and related generator checks; the image Hero has regression tests with a real AppKit container Player overlay, grouping, back entry point, expanding the stage image, shrinking into the sidebar and restoring
Multi-page app adaptation on Web WASM build, generator and browser runtime regression tests Chromium desktop and the specified narrow-screen scenarios; re-check of the media library, themes, navigation and layout on desktop Safari 27.0.1, scope in the Web notes
Recent player extensions on iOS Shared SwiftUI generation path and capability declaration No player interaction acceptance on a device in this round
Recent layout extensions on Linux (GTK) (2026-10-18) The 29 capabilities in the table above and Stack styles implemented in GTK; generator tests include a type check of the generated app; real app bern build --target linux passes Measured on an Ubuntu 24.04 VM through Broadway: onboarding modal, desktop sidebar and timeline (Rail(overhang:) measured), player scene; in the phone layout, TabAccessory, ScrollView(open_at:), scroll_scale and scroll_origin_y, pages.<id>.show(); the phone layout was measured after temporarily lowering the minimum window width. See the Linux platform guide
Recent layout extensions on Android / Windows (2026-10-19) The 29 capabilities in the table above and Stack styles implemented in Compose and WinUI 3, plus window_landscape on Android; the generator tests of both backends cover these capabilities, and the WinUI 3 tests compile both frontends with MSVC on Windows; both backends also implement text_formats; real app bern build --target android and --target windows (on the Windows PC) build successfully Windows: a temporary tour app measured through WinUI 3 and Islands the sidebar header bar and counts, untitled detail, toolbar leading items, scaled scenes and marquee, accordion, controlled values, capsule controls and control groups, search panel, modals, form layout, window.short, idle_enabled; the text-format test app produces the same output under both frontends as SwiftUI, Web and GTK; the real app's onboarding page compared against the design mockup (Fluent rounded buttons, transparent animated logo). Android: see the Android platform guide. Windows: see the Windows platform guide
App icons and sidebar headers that only name the window (2026-10-19) Configuration tests cover the checks and errors for each platform's native format; the generator tests of six backends cover where native formats are placed (.icns, .appiconset, .ico, icon theme renaming, res and roundIcon, page icon links) One real app: on a physical Windows 11 machine the title bars of both frontends show the app icon and title (the icon taken from the bitmap entries of the .ico), and the role: title sidebar header is not shown; macOS 27.0.1 Finder icon; iOS 26.5 simulator home screen and the tinted variant in Assets.car; on an Ubuntu 24.04 VM the runtime finds the icon and the .deb installs all sizes; Web links and dev server types; Android: only the APK contents checked, not installed on a device
Dashed strokes, under_bars, capsule buttons with content (2026-10-19) Shape(dash:, dash_gap:), Stack(under_bars: true) and buttons with content using shape: capsule implemented on six targets; SwiftUI also adds Toolbar inside a Stack (previously dropped). Each backend's generator tests cover dashes; SwiftUI tests type-check with swiftc; the GTK runtime passes Clippy and tests on an Ubuntu 24.04 VM, and the generated app's type check passes; the Android real app builds successfully; for WinUI 3 see the right column. Web runtime tests cover a full-width button making its row fill and fixed-size layers not shrinking in a row The empty-frame window of a real app when there is no page: a macOS 27.0.1 window screenshot measured the empty frame at (103, 64, 1074 × 604) in the 1280 × 800 scene, coinciding point for point with the frame when the player recedes, with the toolbar and traffic lights floating above it; on the iOS 26.5 simulator the frame, button column and list are within ±2 pt of their positions in the design mockup, and the mini player is 24 pt from the bottom edge of the screen; window snapshots from Chromium desktop and a 390-wide narrow screen, and from Broadway on the Ubuntu VM. Fixed along the way on GTK: a Rail with its own thickness inside a Stack is placed by the Stack's alignment (the progress bar at the bottom of thumbnails used to sit in the middle). Later inspected in person on the MIX 2S (Android 15) and a physical Windows 11 machine (150% scaling), fixing Compose's unified top bar, buttons filling a row, rails inside layer stacks and shared elements in modals, as well as WinUI 3's border and content centering of buttons with content, the shade of fill.strong, the position of the page header when content extends under the title bar, and the width TitleBar yields; see the Android platform guide and the Windows platform guide
Canvas as the base layer of a Stack (2026-10-20) When a Canvas given no size in either direction is directly a layer of a Stack, it takes the size given by the other layers instead of expanding the Stack: SwiftUI uses BernLayers (using the written size when the Stack has one), Web excludes it in the layout intent, GTK excludes it in compute_expand, Compose fixed the layer marker not being passed to the canvas, and WinUI 3 already implemented it; such a Stack with no width fills horizontally in a column (SwiftUI fillsWidth, Web align-self: stretch, Compose fillMaxWidth, GTK by the allocated width, WinUI 3 HorizontalAlignment.Stretch). Along the way: in Compose, rails in a row share the remaining width, Label icons scale with the font size, and text in fixed-height rows overflows according to the row's alignment; in GTK, Form fills horizontally and reflow rows aggregate their children's expansion. SwiftUI, Compose and Web runtime tests and the GTK tests (on the VM) pass Optional-feature preview of a real app: macOS 27.0.1 settings window, Chromium onboarding step two, MIX 2S onboarding step two and settings subpage, Ubuntu 24.04 VM (Broadway) settings window; the selected item is only one row tall and the sidebar base layer fills; the plugin banner on the settings page is as wide as the body text on macOS, Windows, Chromium, MIX 2S and the VM. iOS not inspected
Text style control (2026-10-20) style: control on Text and Label takes the platform's button title font: SwiftUI sets no font, WinUI 3 and GTK inherit from the button, Compose uses labelLarge, Web inherits the button's font; the build fails when a text block in style! gives it a separate font size (covered by compiler tests) Text inside a capsule button of a real app: physical Windows 11 machine at size 14 regular, macOS 27.0.1 and Chromium (13 px, 500), Ubuntu 24.04 VM, all matching the system capsule button titles in the same row
tvOS target and TV layout, Shortcut, default_focus (2026-10-20) swiftui + tvos generation and build; bern run --target tvos installs into the tvOS simulator and launches; generation tests type-check against the tvOS simulator SDK; generating and checking layered icons have unit tests. Layout(size: tv), window.tv, Shortcut, default_focus generated on six targets: examples/gallery uses them, each backend's generator tests cover them, GTK compiled on an Ubuntu 24.04 VM (Clippy, type check of the generated app), WinUI 3 compiled with MSVC on the Windows PC, and Web runtime tests cover a disabled shortcut yielding its key Apple TV 4K (3rd generation) simulator (tvOS 26.5): TV layout of the showcase app and of a real app, tab bar, focus movement, default focus, scaled scenes and modals, rewind and fast-forward with left and right while the player's controls are hidden, full-screen settings page; home screen icon and top shelf image. Back and play/pause, a real remote and real hardware not verified, see the tvOS platform guide
Icon-only tabs Tab(display: icon) (2026-10-20) Compiler tests (error when icon is missing); generator tests of six backends (SwiftUI type-checked for tvOS and macOS, WinUI 3 compiled the generated gallery with MSVC on the Windows PC, GTK passed Clippy and the generated app's type check on the Ubuntu VM); Web runtime tests cover aria-label and icon-only buttons On the tvOS simulator the real app's tab bar shows only the magnifying glass (selected and unselected); on macOS 27 the tabs in the window toolbar show only symbols, and the classic tabs in a dialog form show titles; on Chromium, the Ubuntu VM (Broadway, the header switcher in wide windows and the bottom switcher bar in compact windows), WinUI 3 and system XAML on the Windows PC, and a real Android phone, the gallery's "About" tab shows only the icon. iOS not run; screen reader announcements not measured
Animated SVG Generated on six targets; the example built for macOS, the iOS simulator, Android and Web; Linux built natively with a real app (WebKitGTK 6); Windows not built natively in this round Logo and interaction measured on macOS / Web; the animated logo on the onboarding page measured on Linux; on Ubuntu 24.04 the WebKit sandbox needs an AppArmor profile, which the .deb includes (sandboxed run measured under an equivalent profile, installation not measured), while .tar.gz needs it added by hand, see the Linux notes; no device interaction run on iOS / Android in this round, Windows not accepted
Canvas bleed Positioned(bleed:), WindowButtons, web controls and neutral colors (2026-10-20) bleed implemented in Web, SwiftUI, Compose, GTK and WinUI 3; WindowButtons generated on six targets, taking 84 pt on macOS in SwiftUI; the Web, SwiftUI and Compose generator tests cover bleed and WindowButtons, and the GTK and WinUI 3 generator tests cover bleed (the app GTK generates is type-checked on an Ubuntu 24.04 VM, and both WinUI 3 frontends compile with MSVC on the Windows PC); GTK unit tests cover the empty space around the canvas and the bleed on each side; the real app's macOS build passes the Swift type check, and its Linux and Windows builds pass. Web runtime tests cover capsule buttons with content taking the standard height Chromium 1280 × 800, 1512 × 860, 1920 × 970: when the player fills, the picture reaches the window edges (ultra-wide windows keep black bars left and right at 16:9), and when the controls show, the frame and control bar are inside the centered design canvas; the top bar icon buttons have no shared backing and are 6 px apart; menus pop up from the button with their trailing edge aligned to the button; the controls fade and move 8 px between filling and receding. Ubuntu 24.04 VM (Broadway, window 1600 × 713): when filling, the picture is 1267 wide (16:9 of the window height), extending beyond the 1280 × 800 design canvas, with only the black bars outside 16:9 left on both sides; when receding, the frame is at design coordinates (103, 64, 1074) and the controls are inside the centered design canvas; the bleed on each side and the frame move frame by frame with the same spring, and after the window widens the new empty space is used at the next layout. Physical Windows 11 machine (WinUI 3, 150% scaling): with a 1600 × 800 window the frame with controls shown is inside the centered design canvas (x 268.7, width 1063, i.e. design coordinates (103, 1074) times the canvas scale 0.99); when filling, the picture is 1408 wide (16:9 of the content height), extending beyond the design canvas; resized to 1400 × 800, the filling picture spans the whole content width, and at 1280 × 977 it fills by width and is centered vertically; after idling hides the controls the picture fills the same way; the transition on Windows was not sampled frame by frame. bleed on Android and iOS, and the appearance on macOS after changing the window's aspect ratio, not measured
Per-platform lengths and shape: chip (2026-10-20) Compiler tests cover parsing and errors for gap, padding_x, padding_y, width (including fit), height, font_size, row_height in style!; before each target is built, the lengths written on elements are replaced with that target's platform values, and outside the web a chip is replaced with a 30 pt capsule, both covered by generator tests; all six targets go through this step and need no implementation of their own Chromium 1280 × 800 compared against the web design mockup: sidebar, brand row, navigation items, account row, toolbar and search field, the media library's tabs and zoom, the settings dialog's title row, groups and inline dropdowns measured item by item to match the mockup (within 1 px, except for the system scrollbar gutter and Inter glyph widths); the same app's appearance on macOS not measured in this round
App-provided media core (2026-10-21) MediaKernel and the C ABI of bern-media; in core mode SwiftUI's video view provides a CAMetalLayer and a CADisplayLink frame clock (generated for macOS, iOS and tvOS), and on macOS playback, seeking, transfer between views and command-line control were measured with a real app's own playback core; WinUI 3's video view provides a SwapChainPanel and a vertical-blank frame clock (2026-10-25), with playback, subtitles, hardware decoding, pausing and seeking measured on a physical Windows 11 machine; GTK's video view provides a frame sink FrameSink and the GTK frame clock (2026-10-27), with playback, subtitles, seeking while paused, full screen and transfer between views measured on a physical Steam Deck; iOS and tvOS not measured; Compose and Web provide no core surface, so the core does not attach and the platform media facilities work as usual
Engine and bridge side of performance tracing (2026-10-21) Rust tests: rule parsing and errors, the ring buffer (dropping and counting when full, reading while writing), out-of-order records matched by token and revision, long-frame attribution, merging into one line when the same command is too frequent, no clock reads and no buffer allocation when off; a real engine runs through commands and writes a parsable timeline; a bern-ffi test simulates a control operation, and the segments from action to screen match up in the report; passing the bern run --trace arguments has tests; WebAssembly compiles Not measured on a device or in a real app; the UI-thread side of each frontend not hooked up
Shortcuts that follow state, ShortcutInput and the menu bar (2026-10-24) bound_shortcuts and shortcut_input implemented on six targets, menu_bar implemented on macOS and declared not applicable on the other targets; examples/gallery uses all three (the menu bar's app, File and custom menus and submenus, a detail shortcut that follows state, a ShortcutInput for rebinding), and each backend's generator tests cover them accordingly; SwiftUI also has tests that type-check against the macOS, iOS and tvOS SDKs; Web runtime tests cover keys that follow state and recording; the GTK runtime unit tests pass on GTK 4 on macOS; compiler and trybuild tests cover binding, a literal current and shape checks; bern check on the gallery and on a real app gives no warnings on any target Measured on macOS 27 with examples/gallery: the menus appear in the menu bar, ui.activate and real clicks on menu items run the command, and checkmarks and enabled state update after the draft and engine state change; after rebinding, the old key stops working and the new key works; ShortcutInput records ⌃⌘F, Esc keeps it, Delete clears it. The Android build of examples/gallery compiled Compose's runtime code; iOS, tvOS, Android, Linux, Windows and Web not run and measured, and the WinUI 3 C++ not compiled
Idle area and where landscape applies (2026-10-24) idle_area implemented in Compose, GTK and WinUI 3: Compose by hover entering and leaving the idle area, while GTK by picking and WinUI 3 by hit testing find the idle area under the mouse; window_landscape implemented on Web (screen orientation lock), declared not applicable on tvOS, Linux and Windows. Covered by the generator tests of four backends, and Web runtime tests cover the landscape lock; bern check on a temporary app gives no warnings on any target and bern build --target android passes; both WinUI 3 frontends compiled with MSVC on bern-pc (after first working around three compile errors in the HEAD of that time, unrelated to this item); the GTK runtime passes Clippy on GTK 4 on macOS Not run and measured: the Ubuntu VM's disk was full, Windows was only compiled, Android had no device with a mouse attached, and the landscape lock was not tried in a phone browser
App icons switched at runtime ([app.alternate_icons], WindowSet(icon:), 2026-10-25) Compiler tests cover the mapping between the enum and the alternate icons, and its errors; the generator tests of five backends cover their packaging and switching code (iOS CFBundleAlternateIcons and --alternate-app-icon, macOS Assets.car, Android activity-alias, Windows app-<name>.ico, GTK icon names, Web templates) One real app: on the iOS 26.5 simulator the system shows a confirmation after switching and the home screen changes to the alternate icon; on macOS 27.0.1 the Dock switches with the setting and can switch back; on a physical Android 15 device, after selecting and leaving the app, the launcher entry changes to that icon and can switch back (with themed icons on, the two icons have the same monochrome layer, so no difference is visible); Windows and Linux not run; tvOS not supported
Icon Composer .icon icons (2026-10-25) Configuration tests cover macos and ios accepting .icon, and the errors for missing images and mismatched platforms; generator tests cover where AppIcon.icon is placed on both platforms, the actool arguments, and CFBundleIconName in the macOS Info.plist One real app: on macOS 27.0.1 actool builds Assets.car and AppIcon.icns, the Finder icon rendered by NSWorkspace.icon(forFile:) is the Liquid Glass version and, with the system's dark icon style, shows the dark background the .icon specifies; the iOS 26.5 simulator home screen shows the Liquid Glass icon, and Assets.car has three appearances: light, dark and tinted. The flat images on macOS 14 and 15 and on iOS 17 and 18 not seen on real hardware
iOS search results, toolbar and form dropdown menus, horizontal scrolling without clipping shadows (2026-10-24) SwiftUI: a search field in the page lists its results in a system list at the page position when there are results, and is shown centered when there are none; iOS toolbar buttons are not tinted with the accent color; the Picker menu in forms puts the current value in a filled capsule and uses the body text color; horizontal ScrollView gets .scrollClipDisabled() Settings search, toolbar, and the filter tags of the horizontally scrolling media library in a real app on the iOS 26.5 simulator
window.keyboard (2026-10-24) Generated on seven targets: always true on macOS, Linux and Windows; iOS and tvOS follow keyboard connection through GameController; Android reads the hardware keyboard of the current configuration; browsers decide by pointer and key presses On a real Android phone (no keyboard attached) a real app's settings do not show shortcuts; switching when a keyboard is attached not measured
Leading text in a row takes the place of a following Spacer (2026-10-24) bern_ir::leads_row: SwiftUI and Compose let the text take the remaining width and wrap, while the following control keeps its width; other targets follow the general rules of Row Settings rows of a real app on the iOS simulator: the description text wraps and the switch is not pushed out
Content-sized Modal (2026-10-24, 25) Without height, all six backends size it by its content, and when it exceeds the window height minus 32 the scroll view inside scrolls; on iOS, SwiftUI keeps the card inside the safe area while the scrim still covers the whole screen Plugin page of a real app (with long and short descriptions) on macOS, the iOS 26.5 simulator and a real Android phone; for GTK and WinUI 3 see their implementation notes
Masonry Grid(masonry) and inline Markdown Text(markdown) (2026-10-24) Masonry: SwiftUI and Compose use a custom layout, Web uses one-pixel-high grid rows, GTK and WinUI 3 lay it out as an ordinary grid. Markdown: SwiftUI uses the system AttributedString, Compose uses AnnotatedString and LinkAnnotation, Web generates elements, GTK uses Pango markup, WinUI 3 strips the markup and shows only the text Plugin market and plugin page of a real app on macOS, the iOS simulator and a real Android phone: multi-column cards staggered by height, and headings, lists (including nested ones), bold, links and inline code shown in the platform styles; GTK and WinUI 3 not measured
Text style code (2026-10-25) Five backends use their platform's monospaced font: SwiftUI's .monospaced, Compose's FontFamily.Monospace, Web's ui-monospace, GTK's monospace style class, WinUI 3's Cascadia Mono; SwiftUI keeps it monospaced when a font size is set as well Code blocks on a real app's plugin page on a real Android phone; other targets not measured
SVGs that change color with appearance drawn as two images, double sampling of declared images (2026-10-26) bern-svg tests cover classification and expansion by appearance; svg_targets covers the lowering (dark_source) for macOS, Windows, Android, Linux and Web and the colors of the two PNGs; generator tests for Compose, GTK, WinUI 3, SwiftUI (including swiftc type checking) and Web, and Web runtime tests cover picking the image once it is placed in the page and swapping it when the theme changes; the GTK runtime passes Clippy on GTK 4 on macOS; WinUI 3 and XAML Islands compiled with MSVC on the Windows PC; bern build of a temporary example passes for macOS, Android and Web macOS 27: one image each in the window, in an appearance: dark part and in an appearance: light part, each showing the matching image when following the system (dark), when WindowSet(appearance:) forces light and dark, and when going back to following the system; on Chromium (the built-in browser) the same four cases and an emulated system switch to light are all correct. System appearance switching on macOS, and iOS, tvOS, Android, Linux and Windows not run and measured
Scrollbars shown only for the mouse, ScrollView(indicators: mouse) (2026-10-27) SwiftUI on macOS follows the system scrollbar style (shown when a mouse is connected or when set to always show), on iOS shows them after pointer hover, and on tvOS does not show them; WinUI 3 by pointer device type, GTK by event device source and Web by pointerType switch between shown and hidden, hiding them for touch and pen; Compose does not draw scrollbars anyway. Generator tests include Swift type checks for macOS and iOS, and bern-gtk compiles; the WinUI 3 C++ not compiled Not measured on any device
Status bar item StatusItem (2026-10-28) status_item: on macOS a MenuBarExtra (monochrome SF Symbol, the Dock icon is removed when there is no window), on Windows a notification area icon with the system popup menu, on Linux a StatusNotifierItem with dbusmenu; not applicable on iOS, tvOS, Android and Web. Compiler tests cover lowering into the window catalog and the rules for not belonging to a window; SwiftUI tests type-check against the three SDKs; the WinUI 3 and GTK generator tests cover the menu functions (conditions, if let, match, ForEach); the monitor adjustment program builds successfully for all three desktop targets Physical Windows machine: after the window is closed the app stays in the notification area, clicking the icon reopens the window, the right-click menu items and submenus are correct, a preset in a submenu sets the monitor brightness to 30, and "Quit" ends the process and removes the icon. Linux VM: registration under the test watcher, properties, menu, Activate and menu item clicks, and quitting all verified over D-Bus. macOS not run and measured; the real status areas of KDE and GNOME not looked at
Controlled slider bound to an integer (2026-10-28) When Slider(current:) reads and writes an i64, SwiftUI, GTK and Web round the slider's value before handing it to the command, the same as WinUI 3 and Compose: previously SwiftUI failed to compile (Double passed to Int64), GTK encoded the floating-point number in an integer's slot, and Web passed a non-integer The macOS build of the monitor adjustment program passes; other targets not measured
"Open at Login" for the status bar item, login_item (2026-10-29) The menu gets an item before "Quit", checked by the user; when it is checked, the system launches the app at login without opening a window. On Windows it is a value named after the bundle_id under the current user's Run key (the command carries --at-login; one turned off in Task Manager counts as unchecked; the uninstaller deletes it), on Linux an XDG autostart desktop file, and on macOS SMAppService.mainApp, closing the window at launch based on keyAELaunchedAsLogInItem. Compiler tests and the SwiftUI (type checks against three SDKs), WinUI 3 and GTK generation tests cover this item; bern-gtk tests cover the quoting rules of the autostart command Physical Windows machine (release installed build): launched with the login command there is only the notification area icon and no window, checking writes the Run value and unchecking deletes it, a disabled record from Task Manager shows as unchecked and is cleared after checking again, a second launch while running exits immediately, and uninstalling deletes the Run value. Linux VM (test watcher): checking writes the autostart file, Hidden=true shows as unchecked, launching by Exec opens no window, a repeated launch exits immediately, clicking the icon opens the main window, and unchecking deletes the file. Not verified: a real log-out and log-in, opening the window from the icon after a hidden launch on Windows, and all behavior on macOS
Table Table, controlled TextInput(current:), paste: and the engine's copy_text (2026-10-29) table and controlled_text implemented on seven targets, paste on all except tvOS (tvOS has no clipboard). Compiler tests cover the structural rules of tables and KeysField being mutually exclusive with pick/paste; the generator tests of six backends include the gallery's table page; the SwiftUI generated code type-checked against the macOS, iOS and tvOS SDKs; the WinUI 3 and Islands gallery compiled with MSVC on a physical Windows machine; the Android gallery builds an APK; bern-gtk clippy and tests pass on the VM (excluding the svg and script features, which need WebKitGTK 6) A real app on the Linux VM (Broadway): table selection, right-click that selects first and then shows the menu, menu items, changing the sort by clicking a header, the primary action; an add/remove/reorder stress test with no GTK assertions; edits in the controlled input reach the engine; a share link copied and pasted back is identical character for character. Web (Chromium engine): selection, row menus, sorting, double-click, controlled input; clipboard reads and writes use a stand-in. macOS, iOS, tvOS, Android and Windows not run
The status bar item's own monochrome icon StatusItem(image:) (2026-10-29) The three desktop targets of status_item: at build time the SVG's shapes are drawn at each platform's sizes; on macOS an 18 pt template image, on Windows two .ico files, black and white (icon resources 2 and 3, following the taskbar's light/dark mode), on Linux black PNGs embedded in the program, painted white or black at runtime according to the GNOME top bar or the settings portal's color-scheme. Compiler tests cover choosing one of icon and image and accepting only declared SVGs; the generation tests of the three backends check the generated images and code, SwiftUI is type-checked against the macOS SDK, and WinUI 3 compiled with rc and MSVC on a physical Windows machine Linux VM: under the test watcher and portal, all six sizes are black with the light color scheme, and after the portal switches to dark, NewIcon is emitted and they all turn white. macOS and Windows not run
Progress rings Progress(style: ring), save_image with [app].photos, and iOS pages moving across the window (2026-11-03) The ring implemented on six targets: SwiftUI a trimmed circle, Compose drawArc, the Web an SVG circle with a dash, GTK a cairo arc on a DrawingArea, WinUI 3 a Path with an ArcSegment, GPUI a stroked path with round discs for its ends; all ignore input. Compiler tests cover a ring without value and width/stroke_width without the ring; a SwiftUI runtime test draws the ring with ImageRenderer and checks a quarter, the starting dot and a whole ring pixel by pixel. save_image: iOS through PHPhotoLibrary asking only to add, Android 10+ into MediaStore Pictures, elsewhere platform_unavailable; the FFI maps the host's answer 2 to refused (Rust test); a generator test covers NSPhotoLibraryAddUsageDescription in the Info.plist and in every language's InfoPlist.strings. Pages moving across an iPhone's window: see the design document's move iOS 26.5 simulator, recorded frame by frame: the ring over an 18-point arrow.down.circle grows over a real download in the accent and sits on the symbol's own circle; the system asks with the declared reason, the picture lands in the photo library and the app hears it; the playing page covers the bottom of the screen in every frame of rising and is gone a tenth of a second after it starts sinking. The GTK and GPUI runtimes compile on macOS; WinUI 3 and Compose are not compiled or run, Android saving not run
Lists that fill after they first showed on WinUI 3, notices that show once, and Android's Back as escape (2026-11-03) WinUI 3: a lazy list from a column that was collapsed while empty has its containers measure it again, up to the scroll view, once its rows arrive; before, it kept the zero width it had while collapsed and stayed empty until the window changed size. Toast on WinUI 3, GTK and the Web shows again only for a new key or text: its getters read state that changes for other reasons, and each change showed it again. Compose: Shortcut(key: "escape") on a phone or tablet is the system Back as well (BackHandler), active while its enabled holds. A Web runtime test checks that a notice stays as it is while what it reads changes and shows again for a new key A Windows 11 PC, built with MSVC, the app started in the desktop session: playlists of 103, 152 and 289 songs show their rows as soon as they open; with a plugin that updates a taskbar overlay every line, the notice of its installation shows once over 30 seconds of playback, where before it came back every two or three seconds. Android 16 emulator: Back on a page that rises over the tabs closes it, on a detail page goes back, and on the first page leaves the app. GTK compiled on macOS; the Web runtime's tests pass
WebPage, nudge_motion, Pages(all:), Android TV's launcher, rail and focus (2026-11-04) Generator tests of the backends; SwiftUI type-checked for macOS, iOS and tvOS; Compose compiled with the Android build WebPage signed in with a cookie file on macOS. On an Android TV 16 emulator the launcher lists the app with LEANBACK_LAUNCHER, Tabs is a side rail that opens while the remote stands in it and follows it, the focused control grows inside a white outline, Back runs escape, and default_focus takes the control once it is enabled. On a tvOS 27 simulator a Tabs whose tabs change after launch is rebuilt, and Text(bold:) follows state
Files the system opens the application with, [[app.opens]], bern::files::take_opened, make_default_opener (2026-11-06) Open With, context menus and the default application on macOS, Windows, Linux, Android and iOS: see "Files the system opens the application with" in the design document. Generator tests of the backends cover the declarations
Pictures the engine serves, bern::files::serve (2026-11-07) Image(source:) shows URLs of a scheme the engine serves on macOS, iOS, tvOS, Android, Windows and Linux, decoded in memory with no temporary file: see "Pictures the engine serves" in the design document. Browsers and GPUI targets do not read them yet
Wear OS target compose-wearos, Layout(size: watch), window.watch (2026-11-13; updated 2026-11-23) Separate Wear Material 3 (1.7.1, default minSdk = 26, configurable via android.min_sdk, default release ABIs arm64-v8a + armeabi-v7a) APK target sharing the Compose engine/JNI/IPC bridge; check requires explicit Layout(size: watch) in reachable Adaptive blocks and feature coverage checks watch; compiler, generator and examples/wearos APK/tools build pass; no WebPage/Svg WebView runtime Wear OS 6.0 (API 36, 384×384, 320 dpi round emulator): examples/wearos tested end-to-end with taps, rotary crown scroll, swipe-to-dismiss navigation back, SwitchButton, Slider, Picker wheel dialog, Menu dialog, explicit ui focus opening the watch IME, ui set-language, close confirmation AlertDialog, and --engine wearos IPC sync. Not measured on watch: Android 8.0–15 / 32-bit armeabi-v7a watch builds, video playback, Table, Tabs, SplitView, and real watch hardware
Apple Watch target swiftui-watchos (2026-11-14) Standalone watchos SwiftUI target (MinimumOSVersion = 11.0, WKWatchOnly, BernWatchKit.swift) with Keychain secrets, MPNowPlayingInfoCenter now_playing, AVKit.VideoPlayer, sheet-backed BernWatchPicker / BernWatchMenu, B401 Layout(size: watch) check, watch feature proof, and Watch-Only -watchos.ipa packaging (ITSWatchOnlyContainer stub wrapping Watch/<App>.app); Swift 6 type-check tests and examples/wearos simulator .app and device .ipa builds pass; no WebPage/dynamic Svg, file_pick or paste Apple Watch Series 12 (46mm, watchOS 27.2 simulator): examples/wearos installed and verified over --engine watchos IPC and screenshots: Adaptive selecting watch, Form button and slider platter layout without nested cards, NavigationStack push and back, secondary Settings window sheet with single × close button, Toggle, Slider, BernWatchPicker, TextField draft editing, runtime ui set-language, and close confirmation Alert (ConfirmationRequired → Cancel / Discard). Not measured: physical Apple Watch hardware, Sideloadly/device .ipa installation, video playback, Table, Tabs, SplitView, Keychain and Now Playing on watch

Firefox and Safari phone layouts are not yet measured. On macOS, the apps used for acceptance play through the app's own media core, while players on other platforms still have simulated state; acceptance of the player UI and image transitions does not mean full media playback has been integrated.

Sources and maintenance

When adding a backend feature, update this table and the corresponding implementation notes at the same time, and keep the notes on scenarios not yet accepted.

Platform capabilities and verification scope · Bern Docs