We are using a ListView which contains Section views and some of those sections contains footer text. We are seeing an issue where the footer doesn't layout correctly when switching from 1/2 to 1/3 Split View sizes. This results in the footer truncating or in some cases removing the last few lines with no ellipsis indicating that the view is correctly laid out but the list footer view is not respecting the intrinsic size of the Text view.
I wondered if we are doing something wrong but I was able to reproduce in a clean project with the following code
struct ListView: View {
let string = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
@ScaledMetric var spacing: CGFloat = 18
var body: some View {
NavigationView {
List {
Section {
Text("Some content cell")
} footer: {
Text(string)
}
}
}
.navigationViewStyle(.stack)
}
}
Before screen size change
After screen size change
Interestingly changing dynamic font size after this lets the view layout correctly.
Does anyone know why this could be happening or if there's some way we can resolve this issue?
Thanks