Skip to content

How to use gesture inside popup. #64

Closed Answered by LeoNatan
CamilleScholtz asked this question in Q&A
Discussion options

You must be logged in to vote

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

.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. Idea…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LeoNatan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants