BastiaanJansen / toast-swift

Customizable Swift Toast view built with UIKit. 🍞
MIT License
467 stars 77 forks source link

Tap to dismiss #12

Closed drivediary closed 1 year ago

drivediary commented 2 years ago

Hello - Thanks for this, really like it.

A little feature request. Please could you implement an option in the config for a 'tap to dismiss' option?

Cheers :)

BastiaanJansen commented 2 years ago

Hi! Glad you like it.

I currently don't have time to further develop toast-swift, but pull requests are welcome!

BastiaanJansen commented 1 year ago

@allen870619 has implemented the functionality!

allen870619 commented 1 year ago

I didn't add the parameter into Config (Only enablePanToClose), so don't forget to call toast.enableTapToClose() Seems the readme file has deleted the usage. Maybe I should change the way of it? (Adding into config) 🤔

BastiaanJansen commented 1 year ago

You could add it to ToastConfiguration, but I prefer not to add it as a seperate public method you have to call.

allen870619 commented 1 year ago

Ok. Same as I thought 😉