UICollectionViewFlowLayout has wrong initial scroll position on RTL layout

Originator:hesham.abdelmegid
Number:rdar://25698641 Date Originated:13-Apr-2016 08:57 AM
Status:Open Resolved:
Product:iOS Product Version:iOS 9
Classification: Reproducible:Always
 
Summary:
When using a horizontally-scrolling UICollectionViewFlowLayout on an RTL language, the initial scroll position of the collection view is wrong. The collection view's scroll position is on the last item instead of the first item.

Steps to Reproduce:
1. Download sample project from https://github.com/HeshamMegid/CollectionView-RTL-Bug/
2. Run app in RTL pseudolanguage.

Expected Results:
Cell with label 0 should be the first visible one.

Actual Results:
Cell with label 9 is the first visible one.

Version:
iOS 9

Notes:


Configuration:
All iPhones/iPads.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!