Closed tcliff111 closed 5 years ago
touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?)
.touchesEnded(::)
with button UIRect. If intersection meets I do whatever action is desired.I hope this helps you
How is this considered a "closeable" fix? You would have to do this for every single UI control in a view if you had more than one button...
@iPhonig hi,
Koloda isn't designed to include any nested controls inside cards. But, it is possible (as you can see from the thread).
If you have any ideas on how to fix the issue for any nested controls please feel free to open a PR
What did you do?
What did you expect to happen?
It would add button to view on each card and call testFunc() when you pressed the button.
What happened instead?
The button was added to the view, but the function is not called when you press the button.
func koloda(_ koloda: KolodaView, didSelectCardAt index: Int) does work and gets triggered when you press on the view, but I need a way to detect clicks on the button I created that is a subclass of the view.