Antondomashnev / ADTickerLabel

An objective-c UIView which provide a mechanism to show numbers with rolling effect, like in counter
MIT License
113 stars 27 forks source link

Refactored animations to use CATransition #13

Closed absolute-heike closed 8 years ago

absolute-heike commented 9 years ago

Hey, I just made a refactoring of ADTickerLabel and changed the way, the animations are handled.

The intention was to fix the animations when incrementing and decrementing the numbers by 1 to use it as a counter label for likes (like in Tumblr). But it also works nice with bigger changes. Especially when changing from 9 to 10, the animations look correct now. Down- and up-directions work as intended. And the animation, when removing labels is also pimped a little bit. It looks best with LeftAlignment. RightAlignment is okay, but could be improved when switching from 9 to 10.

It works and looks a bit different now (check out the example app), so let me know if you like it, otherwise I will just keep it as a fork ;)

Antondomashnev commented 8 years ago

@absolute-heike thanks a lot for the contribution and I'm sorry for such a really late response. It looks nice, but we need to update the readme example video. Could you please do it? Thanks in advance.

Antondomashnev commented 8 years ago

@absolute-heike I'm going to update the example by myself and will merge the PR 🚀

Antondomashnev commented 8 years ago

@absolute-heike it's merged

Antondomashnev commented 8 years ago

@absolute-heike would you like to be a collaborator? I'm not actively using this project currently, but you are. So I think it's a good idea to add you as a collaborator to support development.