Unexpected behavior with SwiftUI's List and dynamic item height on iOS 17
I'm encountering an issue with a `List` in SwiftUI on iOS 17 where the dynamic height of the rows isn't being respected after updating the underlying data model. I have a simple app that displays a list of items, each with a varying height based on the content. Initially, the heights are calculated correctly, but when I trigger a state change that modifies the data, the rows don't resize appropriately. Here's a snippet of my code: ```swift struct ContentView: View { @State private var items: [String] = ["Short", "A bit longer item", "This is an item that is significantly longer than the previous ones"] var body: some View { List(items, id: \.self) { item in Text(item) .padding() .background(Color.gray.opacity(0.2)) .cornerRadius(8) .frame(maxWidth: .infinity) } .onAppear { DispatchQueue.main.asyncAfter(deadline: .now() + 2) { self.items.append("Here is a new item that is quite long and should adjust the height accordingly.") } } } } ``` When I run this code, the initial list shows the correct heights. However, after the new item is added to the list, the last row doesn't expand to fit its content, and I see some clipping happening. I've tried wrapping the `Text` view in a `GeometryReader` to manage the height, but it still doesn't seem to resolve the issue. I also checked if any view modifiers might be affecting the layout, but everything seems normal. I expect the list to adjust dynamically to fit the new content. Has anyone experienced this and found a workaround or a solution? Any help would be appreciated.