image flash when updating MSMessagesAppViewController in compact style

If my extension is running in MSMessagesAppPresentationStyleCompact and I add a new subview (triggered by tapping on a message in the transcript), I see the new content, then a flash back to the previous content, then back to the new content as it animates to full size. I see the same behavior in the IceCream sample app if I do the following:

1. Post an ice cream message

2. Open the ice cream app into compact mode

3. Tap on the posted ice cream message

Any idea how to work around?

Replies

It looks like they are using a screenshot to animate the expansion. Just wait until you are in expanded mode to do anything that effects the appearance of the view.

Thanks, I found a fix by over-riding viewWillLayoutSubviews and not displaying my new content until the frame height has increased. This happens before the visible size changes, so my new content is visible while the display animates to expanded size.