MFLHintLabel is the product of trying to find a playful, simple, reusable and unique way to communicate with my users. It provides nine highly customizable animation types to display and dismiss text to that end.
Primarily, this was built as a reusable tool for helping to onboard a new user to an app, something eye catching, but informative. It can be used to explain the flow of an application, a subtle control/feature, or convey the result of an interaction to your user.
By making use of original design assets, subviews, clipping, and positioning, this could be used to create incredibly eye popping and entirely unique dialogues for your users. Almost all properties of a UILabel are supported by accessing the internal properties of MFLHintLabel.
By setting up the properties of the MFLHintLabel, all these problems are handled for you:
- Alignment and Width is calculated dynamically
- View hierarchy is constructed and cleaned up on demand
- Intro animation, display time, and outro animation are all tailored to your needs
- Further customization is provided in the form of one sided animations that allow you to animate on screen, display for a time and animate offscreen all in separate animations.
• Linear presentation ie: Falling in, Flying out, Sliding in
• Trailing text, a la old school Windows Solitaire Win Animation
• Many more, and combinations of these.
For now these animations are mostly 2D, but I plan to add 3D animations soon.
Integrating this framework is simple and the sample project contains examples of all nine animations. If you want to leap right in, MFLHintLabel.h contains documentation on all the available properties for customization, and the sample project contains a dozen example animations. See below for a more thorough explanation.