eggswift / pull-to-refresh

#Busy Re-Building....# An easy way to use pull to refresh and infinite scrolling in Swift. Pod 'ESPullToRefresh'
MIT License
1.82k stars 253 forks source link

Right to Left support #173

Open zaidiabbas opened 4 years ago

zaidiabbas commented 4 years ago

I am working on a project that needs content filled in collectionView when language is right to left, so when flipping the collection view using below methods, (es) flips and cannot access its header to re-flip it as shown in the attached images.

Need an access to headerAnimator view to flip it

Screen Shot 2020-02-12 at 4 08 01 PM

//in viewDidLoad YourCollectionView.transform = CGAffineTransform(scaleX: -1.0, y: 1.0) //in cellForItemAtIndexPath cell.transform = CGAffineTransform(scaleX: -1.0, y: 1.0)

//or extension UICollectionView { override open var flipsHorizontallyInOppositeLayoutDirection: Bool { return isLanguageRightToLeft } }

Below image is wrong Simulator Screen Shot - iPhone 11 - 2020-02-17 at 15 38 11

Below image is the right Simulator Screen Shot - iPhone 11 - 2020-02-17 at 15 41 07

Where stats are: Loading: جارِ التحديث Pull to refresh: إسحب للتحديث Release to refresh: إفلت للتحديث