HeroTransitions / Hero

Elegant transition library for iOS & tvOS
https://HeroTransitions.github.io/Hero/
MIT License
22.03k stars 1.72k forks source link

Reversing tabbarAnimationType for RTL #658

Open raduncicen opened 4 years ago

raduncicen commented 4 years ago

What did you do?

I have used hero in my tabbarController. When it is an RTL language the tabs gets mirrored, so in this case when pressed on a tab it should move to the opposite direction in viewcontroller of the tabbar viewcontrollers. I tried to use autoreverse(.auto) and it did not work.

Is there a way to change the animation direction for RTL cases. I know that i can set to slide to a specific direction but what i need is the reverse of .auto.

Example: Assume i have 4 tabs A,B,C,D. Which means in tabbar the same order exists in the tabbar viewcontrollers array. In RTL language app automatically mirrors the tabs and they are aligned as D,C,B,A. Now if i'm at tab B and press A it should slide Left, but it slides Right because the order inside the tabbar viewcontrollers are still the same. Is there a way to fix it