pull-to-refresh
pull-to-refresh copied to clipboard
Right to Left support
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
//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
Below image is the right
Where stats are: Loading: جارِ التحديث Pull to refresh: إسحب للتحديث Release to refresh: إفلت للتحديث