该.animation()修饰符在 iOS 15 中已被弃用,但我不确定我是否理解 Xcode 建议的等效项 , 的animation(_:value:)工作原理。
.animation(.easeInOut(duration: 2)) // \xe2\x9a\xa0\xef\xb8\x8f'animation' was deprecated in iOS 15.0: Use withAnimation or animation(_:value:) instead.\nRun Code Online (Sandbox Code Playgroud)\n我如何更改我的代码以消除警告?
\n