candostdagdeviren / CDAlertView

Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift
https://candostdagdeviren.github.io/CDAlertView/
MIT License
1.14k stars 86 forks source link

Add ability to remove dismiss animations #13

Closed sgruby closed 7 years ago

sgruby commented 7 years ago

I'd like the ability to remove the animations when dismissing the alert via a button. Right now, you always dismiss with the animations turned on.

candostdagdeviren commented 7 years ago

I'd like to do more about animations in general. As a starting point, we can include this to next release. If you want to collaborate, I'd be glad :)

sgruby commented 7 years ago

I don't have a huge interest in adding animations, so I'm not sure I'd be a huge help. Removing the animation should be pretty straightforward with a flag that says something like animate.

Thanks for making this alert view! It was the cleanest one I could find that let me change the font size.

candostdagdeviren commented 7 years ago

Thanks for using it! And yeah, removing the animation is an easy one. I'll try to do that as soon as possible. But don't have that much time at these times.

candostdagdeviren commented 7 years ago

Hi again! I've just added the hiding animation support via hideAnimations property. You can also set the animation duration via hideAnimationDuration property. If you set this property before calling show() method, your animations will run before removing the AlertView from view hierarchy. I'm now closing this issue. If you find any bugs or some other issues, please let me know. Happy coding!