Fix: Calculation of the frame for a bubble component

This commit is contained in:
Nicolas Mauri
2023-04-18 11:37:34 +02:00
parent a72830bdd6
commit 6179453c57
5 changed files with 57 additions and 17 deletions
@@ -144,6 +144,15 @@
*/
- (CGFloat)rawTextHeight:(NSAttributedString*)attributedText;
/**
Return the raw height of the provided text by removing any vertical margin/inset and constraining the width.
@param attributedText the attributed text to measure
@param maxTextViewWidth the maximum text width
@return the computed height
*/
- (CGFloat)rawTextHeight:(NSAttributedString*)attributedText withMaxWidth:(CGFloat)maxTextViewWidth;
/**
Return the content size of a text view initialized with the provided attributed text.
CAUTION: This method runs only on main thread.