Projection: Showing Real Native UI Inside Capacitor and Cordova WebViews

The author set out to bring native-looking UI into WebView apps built with Capacitor or Cordova, after web recreations of iOS 26's Liquid Glass fell short in refraction and touch response. Web content and native views run in separate rendering layers with different stacking and scrolling behavior, so they cannot easily share one screen. The solution, called Projection, temporarily swaps a native view for a captured image when it cannot be interacted with, such as while a web modal covers it or during scrolling. Native UI returns once it becomes interactive again, and the handoff is timed to avoid blank frames or duplicated translucent layers. Projection offers three display modes: live native UI, a projected image inside a DOM container, and an HTML fallback supplied by the plugin.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in