CollectionView cells ignore auto layout properties

Originator:tom.bates
Number:rdar://29363957 Date Originated:22/11/2016
Status:Open Resolved:No
Product:iOS SDK Product Version:
Classification:Bug Reproducible:Yes
 
Summary:
When loading a UICollectionViewCell with auto layout set with a view to be installed for specific size classes this is ignored until the view is rotated and the trait collection is updated

Steps to Reproduce:
Create collectionview with prototype cell
Add subview to the CVC
Set the subview to only show in particular size class (compact width)
Launch the app with size class that the view should not show (regular width)
Observe

Expected Results:
The view should not be visible

Actual Results:
The view is visible.

Version:
iOS 10

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!