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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -