JJFloatingActionButton
JJFloatingActionButton copied to clipboard
JJActionItem not clickable if JJFloatingActionButton is a subview of UIStackView
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?
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? :)
I'll look into this once I have a bit more time. Might be some days though.
This is will need some restructuring. I will need to think a bit more about how to solve this.