How to replace deprecated .animation() in SwiftUI?
You need tell Xcode what exactly should be animated! With given a variable that conform to Equatable protocol. That could be State or Binding or any other wrapper that allow you to update the value of it. Example: struct ContentView: View { @State private var offset: CGFloat = 200.0 var body: some View { Image(systemName: … Read more