Disable Swipeable Tabbar for IOS only
-
Is possible disabling swipeable tabbar and also change animation to fade for IOS devices?
-
You can remove the swipeable attribute on ons-tabbar to disable swiping.
Unfortunately the fade animation is not available for the tabbar, only for the navigator.
-
Yes but I need to disable tabbar swiping only for IOS devices. Is that possible?
-
I think you’re going to need to do that in JavaScript then.
This should work:
ons.ready(() => { if (ons.platform.isIOS()) { document.querySelector('ons-tabbar').removeAttribute('swipeable'); } });