Only need to specify
fixedSize on text to preserve ideal height.
The maximum number of lines is 1 if the value is less than 1. If the value is nil, the text uses as many lines as required. The default is nil.
Text(longText) .lineLimit(nil) // No need .fixedSize(horizontal: false, vertical: true)
If the Text is inside a row in a
fixedSize causes the row to be in middle of the
List, workaround is to use
ScrollView and vertical
Sometimes for Text to properly size itself, specify an explicit frame width
Updated at 2020-10-07 05:02:01