title: How to disable position animation in SwiftUI?
body: <p>I want to scroll a <code>VStack</code> programmatically and some of child views can be animated independently, but when changing the <code>VStack</code>'s offset the animated child view move to its final position witth animation, that's not what I want and how to disable animating this position changes?
  Here is my demo code,</p>
  <pre><code>import SwiftUI
  
  struct ContentView: View {
      @State var angle:Double = 0
      @State var offset = 0
      var body: some View {
              LazyVStack {
                  ForEach((0..&lt;100)) { i in
                      if i == 25 {
                          Rectangle()
                              .frame(width: 30, height: 30)
                              .animation(.none)
                              .rotationEffect(.degrees(angle), anchor: .center)
                              .animation(Animation.linear(duration: 3).repeatForever(autoreverses: false))
                              .onAppear {
                                  angle = 360
                              }
                      } else {
                          Text(&quot;number \(i)&quot;)
                      }
                  }
              }
              .offset(y: CGFloat(offset))
              .animation(.none)
              .onAppear {
                  offset = 200
              }
          
      }
  }
  
  struct ContentView_Previews: PreviewProvider {
      static var previews: some View {
          ContentView()
      }
  }
  
  </code></pre>
  <p>and the effect,
  <a href="https://i.stack.imgur.com/XMB0Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XMB0Y.png" alt="enter image description here" /></a></p>