I am generating Text in ForEach loop and using a Form to give a style, how ever it does not work in heavy data, I am trying to use LazyVStack in sow how but I was not successful! How we can load data to a Form with heavy data?
PS: the same code just working fine with ForEach and without using Form or List, even with heavier data with help of LazyVStack. I just want make codes work with using Form or List.
struct ContentView: View
{
var body: some View
{
Form
{
ForEach(0 ..< 1000000) { index in
Text("Row \(index)")
}
}
}
}