Skip to content

Add Retina Metal rendering and touch input on iOS - #80

Merged
treeform merged 20 commits into
masterfrom
silky-iOS
Nov 16, 2026
Merged

treeform merged 20 commits into
masterfrom
silky-iOS

Conversation

@treeform

@treeform treeform commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Runs Silky controls and rich chat content on iOS using Windy's native UIKit surface and the shared Nim shaders compiled through Shady to Metal.

  • Add Retina atlas metadata, scaled text and images, Metal texture allocation and batching, clipping, and device texture-limit handling.
  • Integrate native text editing, secure fields, first-touch hit testing, and on-demand frame scheduling.
  • Add touch panning and usable scrollbars, with momentum based on UIKit's normal 0.998 deceleration rate. A touch stops momentum; scrollbar drags stop on release.
  • Preserve scroll velocity when streaming content changes its anchored position.

Validation: all eight CI configurations pass across Windows (OpenGL, DirectX 12, Vulkan, CPU), Linux (OpenGL, Emscripten), and macOS (OpenGL, Metal). momentum, touch scrolling, first-touch, and cursor-scroll regressions pass. Momentum tests cover 60 Hz, 120 Hz, uneven frame timing, Retina scaling, bounds, cancellation, and touch-to-stop. The integrated Runway Simulator and signed-device builds pass, with native keyboard and direct scrolling confirmed on iPhone.

Dependencies: treeform/windy#214 and treeform/metal4#5. Shady already supports the required shaders on master; treeform/shady#37 is merged.

@treeform
treeform merged commit 6816ab1 into master Nov 16, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant