KelvinJin / AnimatedCollectionViewLayout

A UICollectionViewLayout subclass that adds custom transitions/animations to the UICollectionView without effecting your existing code.
MIT License
4.7k stars 347 forks source link

RTL Support #56

Open abdoh476 opened 4 years ago

abdoh476 commented 4 years ago

is it still not supporting rtl language ? when making "flipsHorizontallyInOppositeLayoutDirection" true the animation is very corrupted

abdulazizSi commented 3 years ago

is it still not supporting rtl language ? when making "flipsHorizontallyInOppositeLayoutDirection" true the animation is very corrupted

is it still not supporting rtl language ? when making "flipsHorizontallyInOppositeLayoutDirection" true the animation is very corrupted

I think i figured it out, if your project is RTL and you are using

extension UICollectionViewFlowLayout { open override var flipsHorizontallyInOppositeLayoutDirection: Bool { return true } }

the solution is to simply return false, but if you still need that peace of code for something else, do this: extension AnimatedCollectionViewLayout { open override var flipsHorizontallyInOppositeLayoutDirection: Bool { return false } }

this is worked for me perfectly 😍 thank you @KelvinJin for this awesome library 🌹❤️