teodorpatras / EasyTipView

Fully customisable tooltip view in Swift for iOS.
MIT License
3.07k stars 535 forks source link

Is there an option to add button to the tooltip view? #217

Open nirb1991 opened 3 years ago

nirb1991 commented 3 years ago

I'm looking for a correct way to add a button to the tooltip view, could you please assist?

nikletsopen commented 3 years ago

@nirb1991 you can add your fully custom view which will include the button. See examples here - https://github.com/teodorpatras/EasyTipView/blob/master/Example/EasyTipView/ViewController.swift

minhtien1403 commented 2 years ago

@nikletsopen I can't handle action of button inside custion view, do you have any solution

nikletsopen commented 2 years ago

@minhtien1403 you can create your own UIView subclass, and handle button tap there. Then just add this view as a custom view to the tooltip view.