Popovers icon indicating copy to clipboard operation
Popovers copied to clipboard

Unnecessary touch behind a background view

Open alinless opened this issue 1 year ago • 3 comments

Hi! I have founded a problem with using of background. In my very case, I want to close a view by clicking on a background view. But if behind of the touch is located a text field, it will open a keyboard. If button - it will trigger an action. How to block touches behind? Thank you!

         .popover(present: $present ), 
        attributes: {
            $0.position = .relative(popoverAnchors: [.center])
         }, view: {
           TestView()
         }, background: {
            Color.green
         })

alinless avatar Sep 27 '22 17:09 alinless