My app allows users to send real, physical, printed messages to friends in the mail.
I want to offer the ability for the font size to scale down as a user types more lines because some people write long messages and some people write short messages.
I also need to set a limit to the amount of lines you can type (15) because there's a fixed size to the paper being printed on.
I've written a custom function that counts \n but that's only counting hard line returns you hit on your keyboard...not the line wrapping that occurs when naturally typing.
Is there any way to calculate the amount of line wraps in a text field to accomplish this?