Popovers
Popovers copied to clipboard
onTapOutside called twice
I found a bug where onTapOutside
is called twice.
To test this, add the following log in DismissalView1 of the sample code and tap outside the Popover.
$0.onTapOutside = {
let log = print("onTapOutside")
withAnimation(.easeIn(duration: 0.15)) {
expanding = true
}
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
withAnimation(.easeOut(duration: 0.4)) {
expanding = false
}
}
}