Brian G
05/24/2021, 2:10 PMval view = MyView(context)
view.measure(widthMeasureSpec, heightMeasureSpec)
return Pair(textView.measuredWidth, view.measuredHeight)
I guess I could use ComposeView for this but I'm wondering if there is something more directly available in Compose API.Adam Powell
05/24/2021, 2:19 PMBrian G
05/24/2021, 2:29 PMBrian G
05/24/2021, 2:31 PMText()), that would also work.Adam Powell
05/24/2021, 2:33 PMBrian G
05/24/2021, 2:39 PMTextDelegate used by CoreText which might be it, it's marked as internal but looks like it will work 🙂Adam Powell
05/24/2021, 2:42 PMBrian G
05/24/2021, 2:43 PMMultiParagraphIntrinsics which is not marked internal. Also found ParagraphIntrinsics . Cool! I think one of those will work for my silly use case.Brian G
05/24/2021, 2:55 PMParagraph which takes a width parameter, this is exactly what I need 🙂