3 pointsby itsbalamurali10 hours ago1 comment
  • itsbalamurali10 hours ago
    GPUI is the GPU-accelerated UI framework powering the Zed editor — written in Rust, designed for performance, with a React-like component model. It has backends for macOS, Linux, and Windows, but nothing for mobile. gpui-mobile fills that gap by implementing the full gpui::Platform trait for iOS and Android — the same way gpui_linux does for Linux. It’s not a wrapper or a WebView bridge; it’s a proper native platform layer. What’s implemented: ∙ iOS: Metal renderer via wgpu, UIKit windowing (UIWindow + CAMetalLayer), CoreText, GCD dispatcher ∙ Android: Vulkan/GL renderer via wgpu, NDK windowing (ANativeWindow), cosmic-text + swash for text, ALooper dispatcher ∙ Touch input with tap-vs-scroll state machine ∙ Momentum/fling scrolling tuned to match native UIScrollView / OverScroller feel ∙ Hardware + software keyboard support ∙ Safe area insets (notch, home indicator) ∙ Dark mode response ∙ Emoji rendering on Android 13+ (CBDT fallback for COLR v1 system fonts that swash can’t render) The example app runs on a real iPhone and Android device with GPU-accelerated shaders, spring animations, and a component showcase.