XU XUv0.16.0

16 · UI + WebView

#ui is the window/menu/tray shell; #ui/webview is the content slot. Pack with the product compiler: xu doctor / xu build <App> --desktop.

Each app is its own project root:

Independent Project Root Layout
App/ Standalone application root
xu.xun Config Module manifest & dependencies
main.xu Required Primary application entrypoint
www/ Optional Local xu:// static assets (when WebView enabled)
brand/ Required At least one PNG icon for desktop packaging (no fallback)

Apps in the example: open standard window + WebView; shaped shaped window; draw immediate-mode canvas #ui/draw; remote remote HTTP.

xu doctor --desktop --target macos-arm64
XU_UI_PACK=1 xu build examples/16_ui_webview/open --target macos-arm64 --desktop -o /tmp/XuOpen
open /tmp/XuOpen.app

macOS produces .app, Windows .exe, and Linux ELF. Desktop packaging needs matching host tools; Linux uses GTK4 and WebView additionally needs WebKitGTK 6.0. See UI / WebView for platform boundaries.

Run the commands from the separate examples repository root.

New native UI examples

The Xu 0.16.0 SDK includes draw_gallery, widgets, text_input, desktop_services, multiwindow, workbench, editor_workbench, style_gallery, controls_gallery and webview_requests. For SDK requirements, running examples, styles and resource lifetimes, see UI / WebView · Release API。

Controls, editors and style examples · Drawing examples · WebView request examples