lexrus/LTMorphingLabel — pull request #19 by afdreher (2014-12-29 15:12:30+00:00)
Title: Prevents a crash when embedding label in a designable view

I really like the label, but it keeps crashing the IBDesignables agent when it is programmatically embed it inside an IBDesignable view. The problem is that the IBDesignables agent can't instantiate a display link object to animate the change from empty to whatever other text one provides. Here, I've made 3 changes to get the label to work:

1) Added the designable tag to the class
2) Made the animation conditional on the target not being the IB agent. This prevents the above issue with the display link.
3) Forced the _originText to the new value for the IB agent. This is necessary to get the label to draw the characters correctly. If the value isn't set, then without the animation, the label will be blank (it's previous value).

I think this is the minimal change required to get the designables behavior, but it might not be the cleanest.