Description
Sets the maximum number of lines that text can occupy in a view.
Parameters
limit
: The line limit. If nil
, the view uses the default line limit.Example
<text lineLimit="2">This text will be limited to two lines. Any more text will be truncated.</text>