Tiamat icon indicating copy to clipboard operation
Tiamat copied to clipboard

[IOS] Swipe to back on IOS

Open hoanghai9650 opened this issue 1 year ago • 4 comments

Hi, At first, your lib is great! Second, how can I swipe to go back to previous screen like Ios native ?

hoanghai9650 avatar Apr 17 '24 08:04 hoanghai9650

@hoanghai9650 Hi, thanks for advise, going to add it (iOS swipe back action, or else smth to interact/pass into lib)

vkatz avatar Apr 17 '24 11:04 vkatz

Research result: iOS nativ nav seems to use somthing close to android shared-transition (especially for top bar) Animation itself is easy to replicate with

Navigation(
                ...
                contentTransformProvider = { navigationSlideInOut(it) },
                ...
            )

It is also possible to add global wraper (box + touchHandled) with touch action to perform global back action (contact me for more details if needed)

Will wait to shared-element-transition to be fixed and release, next will add fully functional example (or maybe direct implementation)

vkatz avatar Jun 02 '24 23:06 vkatz

PS: feature/predictive-back - here is some very basic example on how it migh looks

vkatz avatar Jun 02 '24 23:06 vkatz

UPD: work in progress, https://github.com/ComposeGears/Tiamat/tree/feature/content-transition-impl here is impl. Waiting for google to fix seekable transition bug

vkatz avatar Jul 15 '24 20:07 vkatz

UPD: google did fix it... https://github.com/ComposeGears/Tiamat/tree/feature/content_transition here is initial implementation

vkatz avatar Feb 18 '25 21:02 vkatz