Since List
doesn't look like its configurable to remove the row dividers at the moment, I'm using a ScrollView
with a VStack
inside it to create a vertical layout of text elements. Example below:
ScrollView {
VStack {
// ...
Text("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer mattis ullamcorper tortor, nec finibus sapien imperdiet non. Duis tristique eros eget ex consectetur laoreet.")
.lineLimit(0)
}.frame(width: UIScreen.main.bounds.width)
}
The resulting Text
rendered is truncated single-line. Outside of a ScrollView
it renders as multi-line. How would I achieve this inside a ScrollView
other than explicitly setting a height for the Text
frame ?