Small Text alignment issue on iOS: cannot get it v...
# compose-ios
t
Small Text alignment issue on iOS: cannot get it vertically aligned to match Android. See thread.
On the left is iOS, on the right Android. Same Compose code of course...
this is the Compose code...
Using CMP 1.6.1
Also, please note that overriding only
fontSize
to control size is incorrect because material theme explicitly specifies line height. (on all platforms including Android - it's consistent) https://kotlinlang.slack.com/archives/C01D6HTPATV/p1708188232643879?thread_ts=1708182833.226639&cid=C01D6HTPATV
t
Thank you so much for the link to the other thread. I added the lineHeight = TextUnit.Unspecified, and removed the font size change, and looks perfect now. Cheers!
👍 2