hotwired / hotwire-native-ios

Hotwire Native for iOS
MIT License
65 stars 4 forks source link

hotwire native and css view-transitions ? #38

Open aktxyz opened 5 days ago

aktxyz commented 5 days ago

It looks like view transitions are not working with ios/turbo ... I am not sure if this is a turbo thing or webview thing (probably webview).

I followed this example and the view-transitions with turbo web look great (as long as you turn it on in chrome config !!). https://dev.to/nejremeslnici/how-to-use-view-transitions-in-hotwire-turbo-1kdi

But the transitions do not work in turbo native ... any ideas ?

MichalSznajder commented 5 days ago

I think they will not work. Between navigation WebView is detached and reattached. You have to implement any transitions yourself in native code.

aktxyz commented 4 days ago

Yes ... I have actually modified the code to not detach the webview ... I was wanting to see if the css-view-transition approach would work. I think the detach/reattach thing is mainly to help with jank on page navs? if so, it seems like the css-view-transition could be a simpler alternative perhaps?