Open zaidiabbas opened 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
//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: إفلت للتحديث
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![Simulator Screen Shot - iPhone 11 - 2020-02-17 at 15 38 11](https://user-images.githubusercontent.com/18144118/74659218-997bd900-519c-11ea-9394-b19d9912e47e.png)
Below image is the right![Simulator Screen Shot - iPhone 11 - 2020-02-17 at 15 41 07](https://user-images.githubusercontent.com/18144118/74659223-9b459c80-519c-11ea-9f48-f033c034d691.png)
Where stats are: Loading: جارِ التحديث Pull to refresh: إسحب للتحديث Release to refresh: إفلت للتحديث