UICollectionView.contentOffset is changed after presenting & dismissing full screen view controller

Originator:an00na
Number:rdar://35660253 Date Originated:November 21 2017, 3:38 PM
Status:Open Resolved:
Product:iOS + SDK Product Version:11.2
Classification:UI/Usability Reproducible:Always
 
Area:
UIKit

Summary:
For a UICollectionViewController inside UINavigationController, presenting then dismissing a full screen(no status bar) view controller causes collection view's contentOffset changes.

Steps to Reproduce:
1. Launch sample app.
2. Scroll collection view to the bottom.
3. Tap a cell to present the full screen view controller.
4. Tap anywhere to dismiss the full screen view controller.
5. Notice the bottom row of cell is now partially cut by the bottom edge of screen because the collection view's contentOffset is changed by something out of my control.

Code: https://mega.nz/#!IOxTjQaL!-l5HeQMssuGS-Uiq-kvlwumcIcGtIbR0vzWb-Gv2YHg

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!