Replies: 1 comment
-
|
Here is some progress that I can share although it's still not perfect.
this works nicely except that the increased messageContainerView will only show if I scroll up and down to force the cell to redisplay itself. I have tried to various approach after changing the frame (layoutIfNeeded, setNeedsDisplay, setNeedsLayout, layoutSuviews, etc...) but none help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to add a "Forwarded" Label inside the messageContainerView of all MessageContentCell (text, media, audio, etc...).
If find that subclassing all sub types of MessageContentCell would be overkill.
I can create an extension of MessageContentCell and add a method to insert that additional label inside the messageContainerView of the cell.
However, that would break the cell size calculation which height I need to increase.
Is it possible to use the default MessageContentCell but overwrite the SizeCalculators? Knowing that I need to increase the size of both the messageContainerView as well as the cell itself.
Beta Was this translation helpful? Give feedback.
All reactions