The following is a simplified version of a screen that is in my app:
From the following code:
import SwiftUI
struct HomeView: View
{
@State private var textFieldUserInput: String = ""
var body: some View
{
VStack
{
List
{
Section
{
TextField("Enter Text", text: self.$textFieldUserInput)
}
Section
{
Text("Example Text 1")
Text("Example Text 2")
Text("Example Text 3")
}
}
}
}
}
I was wanting to have the second Section being able to scroll, while the TextField in the first Section is unable to scroll.
When set I .scrollDisabled to true on the List, and put the second Section in a ScrollView, it works, but it completely changes the formatting and style of the second Section.
Similarly, when I set .scrollDisabled to false and move the Section with the TextField outside of the List, it also makes it look completely different. If I try wrapping the TextField in another List while it's outside of the original List, it maintains the same look, but then each List takes up half of the screen (the second Section doesn't appear directly under the TextField anymore).
I'm just wondering if it's possible to maintain the exact look and style as I have in the above image while enabling the Section below the TextField to be scrollable while the TextField itself is unable to scroll.

