Child View Controllers don't get correct topLayoutGuide length

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

Perhaps slightly related, I filed two radars on this topic (also on Open Radar), both of them being still open:


r27553447 iMessage extension sets wrong bottom edge inset in expanded mode w/ multiline message

r27453762 iMessage extension sets wrong bottom edge insets on collapse


Btw, I'd appreciate if you could publish your radar on Open Radar, so I could dupe it.

Sorry for the noob response but where is Open Radar? I know it's basically a duplicate bug reporting site for filing bugs to Apple.

Thanks in advance ortwin.

I'm sorry, I didn't explain. Just go to openradar . appspot . com and login with a Google account. I didn't put a link to avoid moderation.

To simplify filing and duplicating bugs, use the excellent QuickRadar . com app. It not only allows you to file a bug simultaneously to Apple and OpenRadar but also supports the rdar URL scheme. If the respective bug is published on OpenRadar, it automatically fetches the information so you can file a dupe in just 2 seconds.

Has there been any update to this? It seems to have regressed again on Beta 5.

Child View Controllers don't get correct topLayoutGuide length
 
 
Q