Skip to main content

Crate damascene_ios

Crate damascene_ios 

Source
Expand description

Native iOS host shell for Damascene wgpu apps.

Verified on the iOS simulator (August 2026): the showcase builds through the Xcode project, renders full-screen at the right scale with safe-area insets honored, and touch, drags, animation, rotation, soft-keyboard text input (the keyboard lifts the focused field above itself), plots, and shader animations all work, and the accessibility tree reaches UIKit; a physical iPhone confirmed basic functionality. Known gaps: clipboard and link opening are not yet wired on iOS. ios/README.md has the run sequence and the full status list.

iOS apps are packaged by Xcode. Downstream crates usually build a Rust staticlib with an exported C ABI function, then call that function from the app’s Objective-C or Swift entry point. This crate keeps the Rust side aligned with the desktop and Android host APIs: application code owns App, while damascene-winit-wgpu owns the window, event loop, surface, device/queue, and input translation.

Structs§

HostConfig
Configuration for the optional native winit + wgpu host.

Functions§

run
Run an Damascene app in iOS’s UIKit/winit event loop.
run_with_config
Run an Damascene app on iOS with explicit host configuration.