Present popovers without animation in SwiftUI

Viewed 157

Is there any way to present a .popover() in macOS without animation in SwiftUI?

Apps like Pages and Keynote present popovers without any animation. I tried this but no luck:

Button() { 
    withAnimation(.easeInOut(duration: 0)) {
        popoverPresented.toggle()
    }
}

Xcode 12.2 | SwiftUI 2.0 | Swift 5.2 | macOS 11.0.1

0 Answers
Related