Menu

1 / 4

I Wanted Real Native UI in My WebView. So I Built Projection. [Capacitor/Cordova]

DEV Community: capacitor·Masahiko Sakakibara·15 days ago
#RV8GUDXM
#devtocapacitor#devto#dev#native#webview
Reading 0:00
15s threshold

When you build a WebView app with Capacitor or Cordova, you often recreate native UI on the web to make the app feel at home on the device.

I've spent more than a year working on this, releasing my work as an open-source Ionic Theme that recreates native UI with web technologies.

But did I really recreate Liquid Glass, introduced in iOS 26? That's harder to answer. I could get the appearance close, but the background refraction and the way it responds to touch were beyond what I could reproduce on the web.

Both show a long press. Look at the edges of the glass and the background showing through it.

Then why not use real native UI?

That brought me to a different problem: making it coexist with the WebView. Web content and native UI live in separate rendering layers. I couldn't make them feel like one natural interface.

Recently, I found a way. Take a look!

As I slowly close this web-based sheet modal, a native tab bar emerges from underneath it.

The web modal appears above the native tab bar.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.