rubymotion-community / sugarcube

Some sugar for your cocoa. RubyMotion helpers.
Other
421 stars 66 forks source link

Added a few methods #209

Open holgersindbaek opened 8 years ago

holgersindbaek commented 8 years ago

A few convenience methods animations and attributed string. Hope you'll include.

colinta commented 8 years ago

The attributed string changes are definitely welcome, I'm not so sure on the anim method, it's obviously useful, but it's lacking in "obviousness". I would expect anim to be an alias for animate.

The view.move_to method is very similar (well, similar to the example - I can see that anim could be used to animated opacity and other things), and is more self documenting. Someone reading view.anim(:y, 42) might not understand what that code does without looking it up or running it, but view.move_to([x, y]) is obvious.

Thoughts?