intuit / CardParts

A reactive, card-based UI framework built on UIKit for iOS developers.
Other
2.52k stars 224 forks source link

Animation for CardPartSliderView #234

Open michaelwinailan opened 4 years ago

michaelwinailan commented 4 years ago

The CardPartSliderView is working well. However, I am always frustrated with dealing the animations (I would want to have it flipping vertically everytime we slide left-right but anything else may be fine). I would like to have an embedded function with only several parameters like duration, slider view object, and the built-in type of animation. I tried using UIView.animate(withDuration:) for this but it's too complicated and it somehow acts weirdly when I run the project (i'm unsure if I am doing it right.) However, if such feature exists already, please let me know ASAP and tell me how to do so. Thanks :)