Skip to content

Change default popup bar view tap gesture action. #42

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

You must be logged in to vote

Hello,
This is not possible in the underlying LNPopupController framework, but there you have access to the gesture recognizer, which you can disable or use the delegate to modify. You also have access to the popup bar view, which allows adding more gesture recognizers. You can achieve these with LNPopupUI too, through the popupBarCustomizer(_:) modifier, but it will not be a pure SwiftUI solution. Unfortunately, like anything with SwiftUI, implementing a native solution is more trouble than it is worth, so you will have to work with this solution.

What more, from a design point, I don’t think this is a good UX. Your users are used to having the popup open when tapping the bar, and modify…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LeoNatan
Comment options

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