ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

[FEATURE] Swipe-To-Go-Back, iOS7-Style / Interactive View Transitions

Open sidneys opened this issue 12 years ago • 34 comments

The new iOS7 navigation paradigm requires that users can always swipe to navigate backwards - in UIKit, this feature is called "Interactive Transitions".

This has been excellently implemented in - only a few days old - "Framework 7" by the iDangerous guys:

Demo (Swipe from the left Screen Border): http://www.idangero.us/framework7/#.UxRzo_RdXQw

Source: https://github.com/nolimits4web/Framework7/blob/master/src/js/views.js

This would be the last gap to close to make Ionic non distinguishable from native on newer iOS7 based devices. :-) Please integrate it to the the Ionic framework.

sidneys avatar Mar 03 '14 12:03 sidneys

Hi guys any updates? ;)

RomanMinkin avatar Jan 27 '15 04:01 RomanMinkin

new release candidate(just saw and tried it 5 hours ago!) seems to provide this feature out of the box

reviyou avatar Mar 06 '15 04:03 reviyou

This feature not works in Android 4.4.4 Nexus 4 with version v1.0.0-rc.4 "sulfur-suricate".

danicomas avatar May 07 '15 16:05 danicomas

Swipe to go back is only enabled on iOS. It's not as common of a feature on Android and some lower quality Android devices just couldn't handle it. We opted to keep the functionality consistent across all devices on a given platform and disabled it for all Android. Plus, the Android style page transition doesn't look as good when gradually swiped.

perrygovier avatar May 07 '15 20:05 perrygovier

Does this feature only contain swiping back? What about swiping forward?

oniisanlabs avatar May 07 '15 23:05 oniisanlabs

Hi @perrygovier @ajoslin I need to do something like that but in Android not works how can I do it? Thanks

danicomas avatar May 12 '15 09:05 danicomas

@perrygovier I have tried this but it doesn't work in Android 4.4.4:

$ionicGesture.on('swipe',function(event) { alert(1); }, angular.element(document.querySelector("#hhh")));

danicomas avatar May 12 '15 10:05 danicomas

It works on Android 5.X @perrygovier

danicomas avatar May 12 '15 11:05 danicomas

@seb0zz +1 ! Have you found a way implementing this ?

Yonn-Trimoreau avatar Jul 03 '15 10:07 Yonn-Trimoreau

@Yonn-Trimoreau unfortunately I didn't :-(

oniisanlabs avatar Jul 03 '15 10:07 oniisanlabs

Just found it. It's not really looking like if it was native, but it works great ;) ---> on-swipe-left directive

Yonn-Trimoreau avatar Jul 03 '15 11:07 Yonn-Trimoreau

This feature has been in ionic for a few releases now. It's enabled when using Cordova and iOS. It's disabled for android since android does not have the feature.

mhartington avatar Jul 03 '15 13:07 mhartington

It works quite beautifully when swiping from an ion-slide :+1:

Yonn-Trimoreau avatar Jul 07 '15 07:07 Yonn-Trimoreau

Is there any event listener available for swipe back? I am trying to hook into this using drag right or swipe right but as they are not the same event - it's not accurate. Thanks in advance.

magleahy avatar Mar 08 '16 11:03 magleahy