Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JJActionItem not clickable if JJFloatingActionButton is a subview of UIStackView #196

Open
flusher35 opened this issue Feb 18, 2019 · 3 comments
Labels

Comments

@flusher35
Copy link

simply as said above:
If JJFloatingActionButton is a subview of UIStackView or is a customView of a UIBarButtonItem, it works (opens/closes) but all action items are not clickable. Is there a workaround to fix this?

@flusher35
Copy link
Author

well i managed to accomplish it for my needs by simple introduction of variable and modifying open function like this:
func open(animated: Bool = true, completion: (() -> Void)? = nil) {
guard let superview = useDoubleSuperView ? superview?.superview : superview
.......
so it works perfectly, but you have to be sure its going to be a 100% double subview.
also it can be done by getting a rootViewController.
but maybe there is more elegant way doing this from the dev? :)

@jjochen
Copy link
Owner

jjochen commented Feb 19, 2019

I'll look into this once I have a bit more time. Might be some days though.

@jjochen jjochen added the bug label Feb 19, 2019
@jjochen
Copy link
Owner

jjochen commented Feb 28, 2019

This is will need some restructuring. I will need to think a bit more about how to solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants