JJFloatingActionButton icon indicating copy to clipboard operation
JJFloatingActionButton copied to clipboard

Press-and-hold ability

Open austboston opened this issue 4 years ago • 1 comments

This is awesome, thanks for sharing! Is there someway to have the button perform an action when simply tapped, but open the menu when it is tapped and held? Similar to the floating button on Twitter. Any ideas? Thanks! Austin Blake

austboston avatar May 23 '20 14:05 austboston

you could remove the tap action

actionButton.removeTarget(actionButton, action: nil, for: .touchUpInside)

and handle the opening and closing of the button yourself.

jjochen avatar Jun 17 '20 11:06 jjochen

Hope that helped. Closing this for now.

jjochen avatar Jan 09 '24 10:01 jjochen