JJFloatingActionButton icon indicating copy to clipboard operation
JJFloatingActionButton copied to clipboard

JJActionItem not clickable if JJFloatingActionButton is a subview of UIStackView

Open flusher35 opened this issue 6 years ago • 3 comments

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 avatar Feb 18 '19 22:02 flusher35

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? :)

flusher35 avatar Feb 19 '19 02:02 flusher35

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

jjochen avatar Feb 19 '19 09:02 jjochen

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

jjochen avatar Feb 28 '19 09:02 jjochen