BastiaanJansen / toast-swift

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

Add ability to choose entering/exiting animations and fix on pan gesture #25

Closed Nikoloutsos closed 1 year ago

Nikoloutsos commented 1 year ago

Hi there @BastiaanJansen 👋 , I found some time and as promised in #24 this PR will give the ability to select your preferred animations. I've added a .custom type where user can give his own AffineAnimation. I took it one step further and give the ability to user to select different entering/exiting animations.

Also I fixed an issue I found where panGesture did not work when toast direction is .bottom. Last but not least I changed the pan gesture threshold to 15.

Have a nice weekend 😄

BastiaanJansen commented 1 year ago

Great PR! I will release it in version 1.3.0.