BastiaanJansen / toast-swift

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

Adding `TapToClose` and `PanToClose` feature #13

Closed allen870619 closed 1 year ago

allen870619 commented 1 year ago

Greetings, I added the feature for #12 and Pan gesture to close Toast.

The main changing is using Timer to handle close(), so when trigger gesture, it won't conflict with UIView.animate()

CleanShot 2022-07-28 at 16 04 03 3

Hope it helps ;-)