swift - iOS 11 beta UICollectionViewCell resizes as it approaches top bar using contentInsetAdjustmentBehavior -
my app has uiviewcontroller container view fills entire screen. container view embeds uicollectionviewcontroller. these view controllers should scroll under , show through below status bar. in order achieve this, i've set uicollectionviewcontroller.contentinsetadjustmentbehavior = .never. scroll collectionview , top of cells scroll under status bar, contents of cell shrink. incorrect. want them scroll under status bar did in ios 10.3.
i have developed small test app exhibits bug , uploaded bug report. looks broken can't imagine how others haven't see same issue.
small test project here: https://github.com/murthyveda2000/ios11bug
this feels total hack, , hope bug apple fix (but i'm seeing in xcode 9 gm i'm less optimistic) able fix on sample project with:
cell.contentview.insetslayoutmarginsfromsafearea = false
in app more complex layouts, i've had apply subviews use layout margin guides.
this has unintended consequences , bad answer in week. suspect if support rotation, might screw things up.
Comments
Post a Comment