当导航栏中有popover
时,关闭popover
时动画会中断。也只能打开一次。它可以在iPad上正常工作,但动画在iPad上有所不同。这是错误吗?
struct ContentView: View {
@State var showPopover:Bool = false
var body: some View {
NavigationView{
Text("Popover Animation Test")
.navigationBarItems(trailing: Button("Popover"){ self.showPopover = true }.popover(isPresented: self.$showPopover){ Text("Hello from Popover") })
}
}
}