-[UICollectionViewCell systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority:] returns size computed according to its current width, ignoring the provided targetSize
Originator: | pohilets | ||
Number: | rdar://48805486 | Date Originated: | 12 Mar 2019 |
Status: | Open | Resolved: | |
Product: | iOS + SDK, UIKit | Product Version: | iOS 12.1 |
Classification: | Serious Bug | Reproducible: | Always |
Area: UIKit Summary: A prototype instance of the UICollectionViewCell is created with some dummy frame. When systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority: is called on the prototype cell, it returns size computed according to its current width, ignoring the provided targetSize Steps to Reproduce: See https://github.com/nickolas-pohilets/CollectionViewBug Expected Results: Cell should be laid out according to screen width Actual Results: Cell is laid out according to dummyFrame Version/Build: iOS Simulator 12.1 iOS 12.1.4 (16D57) Xcode 10.1 (10B61)
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!