I am wondering if there is some function that returns size of a string similar to the size of NSString in iOS?
Ex. We need to have some Widget at the bottom of screen where at first we should see only text but after user pulls that widget up, we would see more (something like bottom sheet). That starting height of the widget depends on the string.