title: Scroll to bottom of a list populated with CoreData in SwiftUI
body: <p>I'm trying to scroll to the bottom of <code>List</code> when a button is tapped. I have tried placing the <code>List</code> in a <code>ScrollViewReader</code> and this seems to work only when the <code>List</code> is populated using an array. When I populate the List using <code>CoreData</code>'s <code>FetchedResults</code> the <code>List</code> doesn't scroll for some reason.</p>
  <pre><code>var array = Array(0...100)
  
  
  private var items: FetchedResults&lt;Item&gt;
  
  NavigationView {
          ScrollViewReader { (proxy: ScrollViewProxy) in
              List{
                  ForEach(items) {item in
                      
                      Text(item.text!)
                  }
              }
              Button(&quot;Tap to scroll&quot;) {
                  
                      proxy.scrollTo(10, anchor: .top)
              }
      }
  }
  </code></pre>
  <p>Here if i use <code>items</code> it doesn't scroll but when I replace <code>items</code> with <code>array</code> the list scrolls as expected.</p>