在 SwiftUI 中呈现没有动画的弹出窗口

Alb*_*tUI 5 macos xcode swift swiftui

有没有办法.popover()在 SwiftUI 中呈现 macOS 中的动画而无需动画?

\n

Pages 和 Keynote 等应用程序呈现的弹出窗口没有任何动画。我尝试过这个但没有运气:

\n
Button() { \n    withAnimation(.easeInOut(duration: 0)) {\n        popoverPresented.toggle()\n    }\n}\n
Run Code Online (Sandbox Code Playgroud)\n

Xcode 12.2 | SwiftUI 2.0 |\xc2\xa0Swift 5.2 | macOS 11.0.1

\n