I reported this as radar 27513192 but it's been marked as duplicate of 27434425 (closed). But this is still happening in Beta 4. Should I report this bug again?
I have a simple project that creates a child VC in MessagesViewController in viewDidLoad. And then in both Child and Messages VC, I print out the topLayoutGuide and bottomLayoutGuide lengths in viewDidLayoutSubviews().
I then simply switch from compact to expanded mode. Note that going to compact mode, the child does not get the topLayoutGuide.length of 0 but the MessagesVC does get one.
[Click Up Arrow]
WillTransition to Expanded
MessagesVC - TopLayoutAmount. Parent: Optional(20.0) Mine: 86.0
MessagesVC - BottomLayoutAmount. Parent: Optional(0.0) Mine: 44.0
MessagesVC - TopLayoutAmount. Parent: Optional(20.0) Mine: 86.0
MessagesVC - BottomLayoutAmount. Parent: Optional(0.0) Mine: 44.0
ChildVC - TopLayoutAmount. Parent: Optional(86.0) Mine: 86.0
ChildVC - BottomLayoutAmount. Parent: Optional(44.0) Mine: 44.0
DidTransition to Expanded
[Click Down Arrow]
WillTransition to Compact
MessagesVC - TopLayoutAmount. Parent: Optional(20.0) Mine: 86.0
MessagesVC - BottomLayoutAmount. Parent: Optional(0.0) Mine: 44.0
ChildVC - TopLayoutAmount. Parent: Optional(86.0) Mine: 86.0
ChildVC - BottomLayoutAmount. Parent: Optional(44.0) Mine: 44.0
MessagesVC - TopLayoutAmount. Parent: Optional(20.0) Mine: 0.0
MessagesVC - BottomLayoutAmount. Parent: Optional(0.0) Mine: 44.0
DidTransition to Compact