How to mix capacitor view with native acitivity/viewController?

I really like Capacitor, and I am developing an App using Capacitor 2.x. I wander if I can mix the Webview/WKWebview for Capacitor with another native Android Activity or iOS WKWebView, so I can switch between them forward or backward. Is there an example for this scenario?

This is possible on Capacitor 3+ and Ionic Portals. Capacitor 2 cannot be embedded properly due to memory leaks when switching between the webview and the activity

1 Like

Could you clarify this a bit?

Is this only possible with Ionic Portals? Or is this also possible with just Capacitor? If yes, is there any documentation about this?