使用.animation()时,iOS 14.5的行为与iOS 13.7不同

使用.animation()时,iOS 14.5的行为与iOS 13.7不同,ios,swiftui,swift5,Ios,Swiftui,Swift5,我想我在iOS 13中发现了一个bug。你知道怎么修吗 Rectangle() .fill(color) .edgesIgnoringSafeArea(.all) .animation(.easeInOut.speed(0.01)) .frame( width:UIScreen.main.bounds.width/2.5, height:UIScreen.main.bounds.height/2) .onReceive(timer, perform: { _ in self

我想我在iOS 13中发现了一个bug。你知道怎么修吗

Rectangle()
 .fill(color)
 .edgesIgnoringSafeArea(.all)
 .animation(.easeInOut.speed(0.01))
 .frame(
  width:UIScreen.main.bounds.width/2.5,
  height:UIScreen.main.bounds.height/2)
 .onReceive(timer, perform: { _ in
  self.color = App.color() })
在iOS 14中,这将创建一个动画,该动画在颜色更改时为其设置动画。在iOS 13中,它可以这样做,但也有一个随机动画,其中矩形()从左侧滑入其位置