How to use gesture inside popup. #64
-
I'm displaying artwork in the popup, with some |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello .popupBarCustomizer { popupBar in
popupBar.popupOpenGestureRecognizer.delegate = self // <- the open gesture recognizer is also the interaction gesture recognizer when popups are open
} and play around with the gesture recognizers. I am not really familiar with the native SwiftUI gesture APIs; perhaps it is possible to somehow expose the underlying UIKit gesture recognizers to SwiftUI to allow for a more native experience, but since I am not really familiar with it, I wouldn't know where to start. Ideas/PRs are welcome. |
Beta Was this translation helpful? Give feedback.
Hello
I'm not sure how much of this can be achieved in SwiftUI/LNPopupUI. You might need to go down to UIKit's gesture recognizer delegates to fine-tune simultaneous gestures. Look into
and play around with the gesture recognizers.
I am not really familiar with the native SwiftUI gesture APIs; perhaps it is possible to somehow expose the underlying UIKit gesture recognizers to SwiftUI to allow for a more native experience, but since I am not really familiar with it, I wouldn't know where to start. Idea…