UICollectionView insets not showing in RTL

Originator:bekzat.turapbekov
Number:rdar://31399845 Date Originated:10-Apr-2017
Status:Open Resolved:
Product:iOS + SDK Product Version:iOS 10.2
Classification: Reproducible:Yes
 
Area:
UIKit

Summary:
Insets of collection view in horizontal direction in RTL are not shown correctly.

Steps to Reproduce:
1. Open example project. 
2. Set language to RightToLeft pseudolanguage
3. Leading insets of collection view are not shown.

Expected Results:
Leading insets of collection should be seen on screen.

Actual Results:
Leading insets of collection view are not shown. Behavior should be same as in non-RTL mode.

Version:
10.2 (14C89)

Notes:
When insets of collection view are set with number bigger than ~10-15, insets are not shown both for RTL and non-RTL, but when insets are set to smaller value (ex: 10px) insets are shown for non-RTL, and not shown in RTL.

Configuration:
iPhone 7, iOS 10.2

Attachments:

'insets in default.png' (https://www.dropbox.com/s/vs3vu7azwcyqupg/insets%20in%20default.png?dl=0)
'insets in RTL.png (https://www.dropbox.com/s/w5vzfj6jnn730mj/insets%20in%20RTL.png?dl=0)',
 'CollectionViewInsetsRTL.zip' (https://www.dropbox.com/s/2rsaa6xtum6inhf/CollectionViewInsetsRTL.zip?dl=0)

 were successfully uploaded.

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!