Do any of my iOS friends know why a collection view launched in landscape wouldn't respect the safe area until you re-rotate back to landscape?pic.twitter.com/TqNJFgkEao
-
-
-
-
Replying to @benedictfritz @mxcl
There’s a callback for trait collection did change that I think fires when the safe area layout insets change
1 reply 0 retweets 0 likes -
Replying to @designatednerd @mxcl
Hmm invalidating the layout in traitCollectionDidChange and viewWillAppear both don't work, but calling it in viewDidAppear causes it to correct properly (but of course looks bad because it jumps in the UI). I suspect I'm doing something very dumb...
1 reply 0 retweets 0 likes -
Replying to @benedictfritz @mxcl
When I get back tonight I’ll look at what callback I used for real, I definitely remember banging my head on this for a stupidly long time.
1 reply 0 retweets 0 likes
Okay I figured out a solution that works collectionView.contentInsetAdjustmentBehavior = .always ¯\_(ツ)_/¯
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.