Popovers icon indicating copy to clipboard operation
Popovers copied to clipboard

onTapOutside called twice

Open ahbou opened this issue 2 years ago • 0 comments

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
                        }
                    }
                }

ahbou avatar Dec 09 '22 14:12 ahbou