pull-to-refresh icon indicating copy to clipboard operation
pull-to-refresh copied to clipboard

Right to Left support

Open zaidiabbas opened this issue 5 years ago • 0 comments

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: إفلت للتحديث

zaidiabbas avatar Feb 17 '20 13:02 zaidiabbas