问题 I am using two ForEach() in a nested way, one to display the sections, and the other to display the individual cells of the List view. My problem is that the iterator variable from the first ForEach is behaving in a very weird way when accessing it in the second ForEach . In this gif I attached, the first variable behind Round ( ri in the code snippet below) changes its value sometimes when I scroll up or down. However the value of this variable is always the same inside the first ForEach ,