MSMessageLiveLayout iOS 12

Hi everyone,


I am using MSMessageLiveLayout to render the contents of a bubble, but since iOS12 the bubble on the receiving side, does not render correctly until the user scrolls up/down.


The issue is the that contents of the bubble is not aligned correctly inside the bubble.


I have tried just placing a simple label in the bubble that the text should be aligned in the center, but same behavior. The text appears first to the right and when the user scrolls it centers correctly.


I have been using the same layout since iOS 11, and the bubble was rendering perfectly no issues there.


What I noticed is that in iOS12 there is a spinner on the receiving side before the bubble appears on screen, and I am heading to believe that spinner throws things off.


Please provide me with some feedback, if you have seen such behavior.

I appreciate all your help.


Thank you

Replies

I've run into the same problem, to (sort of) solve this - I have an NSTimer setup to run every half a second to manualy layout everything in the bubble. Make sure you don't forget to invalidate the timer when you're done with the bubble.

Thank you for the input, I will try out your solution and let you know.


I have a question, how do you know how many times to run the NSTimer?

Do you run it once and forget or repeat several times?


Thank you for your insight!